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

Back to archive index

Takuro Ashie makei****@users*****
2006年 11月 30日 (木) 16:04:31 JST


Index: libtomoe-gtk/src/tomoe-gucharmap.c
diff -u libtomoe-gtk/src/tomoe-gucharmap.c:1.1 libtomoe-gtk/src/tomoe-gucharmap.c:1.2
--- libtomoe-gtk/src/tomoe-gucharmap.c:1.1	Thu Nov 30 15:42:50 2006
+++ libtomoe-gtk/src/tomoe-gucharmap.c	Thu Nov 30 16:04:31 2006
@@ -51,17 +51,24 @@
 tomoe_gucharmap_init (TomoeGucharmap *page)
 {
     GucharmapChapters *chapters;
-    GtkWidget *charmap, *widget;
+    GtkWidget *vbox, *charmap, *widget;
 
     gtk_table_resize (GTK_TABLE (page), 1, 1);
     gtk_table_set_homogeneous (GTK_TABLE (page), FALSE);
 
+    vbox = gtk_vbox_new (FALSE, 0);
+    gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
+    gtk_table_attach_defaults (GTK_TABLE (page), vbox, 0, 1, 0, 1);
+    gtk_widget_show (vbox);
+
     /* An opiton menu for selecting unicode blocks will be placed here. */
 
+    /* gucharmap */
     chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ());
     charmap = gucharmap_charmap_new (chapters);
-    gtk_table_attach_defaults (GTK_TABLE (page), charmap, 0, 1, 0, 1);
-    gtk_widget_show (charmap);
+    widget = GTK_WIDGET (charmap);
+    gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0);
+    gtk_widget_show (widget);
 
     /* Hide chapters page by default. Usually use option menu instead. */
     gtk_widget_hide (GTK_WIDGET (chapters));


tomoe-cvs メーリングリストの案内
Back to archive index