[Tomoe-cvs 1233] CVS update: libtomoe-gtk/src

アーカイブの一覧に戻る

Hiroyuki Ikezoe ikezo****@users*****
2006年 11月 28日 (火) 10:21:05 JST


Index: libtomoe-gtk/src/tomoe-stroke-search.c
diff -u libtomoe-gtk/src/tomoe-stroke-search.c:1.12 libtomoe-gtk/src/tomoe-stroke-search.c:1.13
--- libtomoe-gtk/src/tomoe-stroke-search.c:1.12	Mon Nov 27 18:01:06 2006
+++ libtomoe-gtk/src/tomoe-stroke-search.c	Tue Nov 28 10:21:05 2006
@@ -295,6 +295,17 @@
     return FALSE;
 }
 
+GtkWidget *
+tomoe_stroke_search_get_button_area (TomoeStrokeSearch *stroke_search)
+{
+    TomoeStrokeSearchPrivate *priv;
+
+    g_return_val_if_fail (TOMOE_IS_STROKE_SEARCH (stroke_search), NULL);
+    priv = TOMOE_STROKE_SEARCH_GET_PRIVATE (stroke_search);
+
+    return priv->button_area;
+}
+
 #ifdef ENABLE_DUMPSTROKE
 static void
 on_dump_button_clicked (GtkButton *button, gpointer user_data)
Index: libtomoe-gtk/src/tomoe-stroke-search.h
diff -u libtomoe-gtk/src/tomoe-stroke-search.h:1.3 libtomoe-gtk/src/tomoe-stroke-search.h:1.4
--- libtomoe-gtk/src/tomoe-stroke-search.h:1.3	Tue Nov 21 20:17:22 2006
+++ libtomoe-gtk/src/tomoe-stroke-search.h	Tue Nov 28 10:21:05 2006
@@ -49,9 +49,11 @@
 };
 
 
-GType       tomoe_stroke_search_get_type    (void) G_GNUC_CONST;
-GtkWidget * tomoe_stroke_search_new         (void);
-GtkWidget * tomoe_stroke_search_get_canvas  (TomoeStrokeSearch* strokeSearch);
+GType      tomoe_stroke_search_get_type    (void) G_GNUC_CONST;
+GtkWidget *tomoe_stroke_search_new         (void);
+GtkWidget *tomoe_stroke_search_get_canvas  (TomoeStrokeSearch *stroke_search);
+GtkWidget *tomoe_stroke_search_get_button_area 
+                                           (TomoeStrokeSearch *stroke_search);
 
 G_END_DECLS
 
Index: libtomoe-gtk/src/tomoe-window.c
diff -u libtomoe-gtk/src/tomoe-window.c:1.18 libtomoe-gtk/src/tomoe-window.c:1.19
--- libtomoe-gtk/src/tomoe-window.c:1.18	Mon Nov 27 16:29:09 2006
+++ libtomoe-gtk/src/tomoe-window.c	Tue Nov 28 10:21:05 2006
@@ -99,7 +99,6 @@
     gtk_container_add (GTK_CONTAINER (GTK_DIALOG (window)->vbox), notebook);
     gtk_widget_show (notebook);
 
-    /* TODO gtk warnings at destroy */
     handwriting_page = tomoe_stroke_search_new ();
     priv->handwriting_page = handwriting_page;
     canvas = TOMOE_CANVAS (tomoe_stroke_search_get_canvas (TOMOE_STROKE_SEARCH (handwriting_page)));
@@ -177,6 +176,16 @@
         gtk_tooltips_set_tip (tip, event_box, label_text, NULL);
     }
 }
+
+GtkWidget *
+tomoe_window_get_handwriting_page (TomoeWindow *window)
+{
+    g_return_val_if_fail (TOMOE_IS_WINDOW (window), NULL);
+
+    return TOMOE_WINDOW_GET_PRIVATE (window)->handwriting_page;
+
+}
+
 /*
  * vi:ts=4:nowrap:ai:expandtab
  */
Index: libtomoe-gtk/src/tomoe-window.h
diff -u libtomoe-gtk/src/tomoe-window.h:1.8 libtomoe-gtk/src/tomoe-window.h:1.9
--- libtomoe-gtk/src/tomoe-window.h:1.8	Thu Nov 23 16:08:58 2006
+++ libtomoe-gtk/src/tomoe-window.h	Tue Nov 28 10:21:05 2006
@@ -52,6 +52,8 @@
 GtkWidget  *tomoe_window_get_canvas  (TomoeWindow *window);
 void        tomoe_window_append_page (TomoeWindow *window, GtkWidget *page,
                                       GtkWidget *label, const gchar *label_text);
+GtkWidget  *tomoe_window_get_handwriting_page 
+                                     (TomoeWindow *window);
 
 G_END_DECLS
 


tomoe-cvs メーリングリストの案内
アーカイブの一覧に戻る