Hiroyuki Ikezoe
ikezo****@users*****
2006年 11月 28日 (火) 10:30:42 JST
Index: libtomoe-gtk/src/tomoe-stroke-search.c diff -u libtomoe-gtk/src/tomoe-stroke-search.c:1.13 libtomoe-gtk/src/tomoe-stroke-search.c:1.14 --- libtomoe-gtk/src/tomoe-stroke-search.c:1.13 Tue Nov 28 10:21:05 2006 +++ libtomoe-gtk/src/tomoe-stroke-search.c Tue Nov 28 10:30:42 2006 @@ -29,6 +29,7 @@ #include "tomoe-char-table.h" enum { + SELECTED_SIGNAL, LAST_SIGNAL }; @@ -70,15 +71,26 @@ GdkEventButton *event, gpointer user_data); -/*static guint stroke_search_signals[LAST_SIGNAL] = { 0 };*/ +static guint stroke_search_signals[LAST_SIGNAL] = { 0 }; static void tomoe_stroke_search_class_init (TomoeStrokeSearchClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); + stroke_search_signals[SELECTED_SIGNAL] = + g_signal_new ("selected", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (TomoeStrokeSearchClass, selected), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + gobject_class->dispose = dispose; + klass->selected = NULL; + g_type_class_add_private (gobject_class, sizeof (TomoeStrokeSearchPrivate)); } Index: libtomoe-gtk/src/tomoe-stroke-search.h diff -u libtomoe-gtk/src/tomoe-stroke-search.h:1.4 libtomoe-gtk/src/tomoe-stroke-search.h:1.5 --- libtomoe-gtk/src/tomoe-stroke-search.h:1.4 Tue Nov 28 10:21:05 2006 +++ libtomoe-gtk/src/tomoe-stroke-search.h Tue Nov 28 10:30:42 2006 @@ -46,6 +46,8 @@ struct _TomoeStrokeSearchClass { GtkTableClass parent_class; + /* -- signals -- */ + void (*selected) (TomoeStrokeSearch *search); };