connectOutput
fun connectOutput(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Boolean): <Error class: unknown class>
Emitted to tweak the formatting of the value for display.
// show leading zeros
static gboolean
on_output (GtkSpinButton *spin,
gpointer data)
{
char *text;
int value;
value = gtk_spin_button_get_value_as_int (spin);
text = g_strdup_printf ("%02d", value);
gtk_editable_set_text (GTK_EDITABLE (spin), text):
g_free (text);
return TRUE;
}
Content copied to clipboard
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect. Returns true if the value has been displayed