Skip to content

Instantly share code, notes, and snippets.

@chergert
Created June 26, 2015 00:35
Show Gist options
  • Save chergert/4784ef8c5ae0e7740921 to your computer and use it in GitHub Desktop.
Save chergert/4784ef8c5ae0e7740921 to your computer and use it in GitHub Desktop.
g_signal_new ("done",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (MyFooClass, done),
NULL, NULL, NULL,
G_TYPE_NONE,
0);
binding_set = gtk_binding_set_by_class (klass);
gtk_binding_entry_add_signal (binding_set,
GDK_KEY_Escape,
0,
"done",
0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment