comparison console/libgnt/gnt-skel.c @ 14793:8a0cfee11af8

[gaim-migrate @ 17558] Introduce actions. You can specify the bindings for the actions. Right now, only the tree and the entry widget have them. The manual includes the details. I believe Ethan had suggested something like this a while back. It made sense, so here it is. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 21 Oct 2006 21:08:24 +0000
parents 3ac156db9cb6
children
comparison
equal deleted inserted replaced
14792:242f948ee707 14793:8a0cfee11af8
48 parent_class->draw = gnt_skel_draw; 48 parent_class->draw = gnt_skel_draw;
49 parent_class->map = gnt_skel_map; 49 parent_class->map = gnt_skel_map;
50 parent_class->size_request = gnt_skel_size_request; 50 parent_class->size_request = gnt_skel_size_request;
51 parent_class->key_pressed = gnt_skel_key_pressed; 51 parent_class->key_pressed = gnt_skel_key_pressed;
52 52
53 parent_class->actions = g_hash_table_duplicate(parent_class->actions, g_str_hash,
54 g_str_equal, NULL, (GDestroyNotify)gnt_widget_action_free);
55 parent_class->bindings = g_hash_table_duplicate(parent_class->bindings, g_str_hash,
56 g_str_equal, NULL, (GDestroyNotify)gnt_widget_action_param_free);
57
58 gnt_widget_actions_read(G_OBJECT_CLASS_TYPE(klass), klass);
59
53 GNTDEBUG; 60 GNTDEBUG;
54 } 61 }
55 62
56 static void 63 static void
57 gnt_skel_init(GTypeInstance *instance, gpointer class) 64 gnt_skel_init(GTypeInstance *instance, gpointer class)