File fix-GtkDialog-has-no-number-named-vbox-error.patch of Package scim-anthy

diff -urN scim-anthy-1.2.7.orig/src/scim_anthy_color_button.cpp scim-anthy-1.2.7/src/scim_anthy_color_button.cpp
--- scim-anthy-1.2.7.orig/src/scim_anthy_color_button.cpp	2012-06-04 14:35:15.433829462 +0800
+++ scim-anthy-1.2.7/src/scim_anthy_color_button.cpp	2012-06-04 15:20:08.525161186 +0800
@@ -212,7 +212,7 @@
     gint            swap_w = 0, swap_h = 0;
     gint            rect_w, rect_h;
   
-    if (!GTK_WIDGET_DRAWABLE (widget))
+    if (!gtk_widget_is_drawable(widget))
         return FALSE;
   
     width  = widget->allocation.width;
diff -urN scim-anthy-1.2.7.orig/src/scim_anthy_setup_kana.cpp scim-anthy-1.2.7/src/scim_anthy_setup_kana.cpp
--- scim-anthy-1.2.7.orig/src/scim_anthy_setup_kana.cpp	2012-06-04 14:35:15.432829474 +0800
+++ scim-anthy-1.2.7/src/scim_anthy_setup_kana.cpp	2012-06-04 14:49:28.598163441 +0800
@@ -272,9 +272,9 @@
     // option menu area
     GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
     gtk_container_set_border_width (GTK_CONTAINER (hbox), 4);
-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
+    gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox,
                         FALSE, FALSE, 0);
-    gtk_box_reorder_child (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox, 0);
+    gtk_box_reorder_child (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, 0);
     gtk_widget_show(hbox);
 
     GtkWidget *label = gtk_label_new_with_mnemonic (_("Layout _table:"));
@@ -344,9 +344,9 @@
     // option menu area
     GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
     gtk_container_set_border_width (GTK_CONTAINER (hbox), 4);
-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
+    gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox,
                         FALSE, FALSE, 0);
-    gtk_box_reorder_child (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox, 0);
+    gtk_box_reorder_child (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, 0);
     gtk_widget_show(hbox);
 
     GtkWidget *label = gtk_label_new_with_mnemonic (_("Layout _table:"));
diff -urN scim-anthy-1.2.7.orig/src/scim_anthy_setup_romaji.cpp scim-anthy-1.2.7/src/scim_anthy_setup_romaji.cpp
--- scim-anthy-1.2.7.orig/src/scim_anthy_setup_romaji.cpp	2012-06-04 14:35:15.433829462 +0800
+++ scim-anthy-1.2.7/src/scim_anthy_setup_romaji.cpp	2012-06-04 14:46:39.129282092 +0800
@@ -187,9 +187,9 @@
     // option menu area
     GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
     gtk_container_set_border_width (GTK_CONTAINER (hbox), 4);
-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
+    gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox,
                         FALSE, FALSE, 0);
-    gtk_box_reorder_child (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox, 0);
+    gtk_box_reorder_child (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, 0);
     gtk_widget_show(hbox);
 
     GtkWidget *label = gtk_label_new_with_mnemonic (_("Romaji _table:"));
diff -urN scim-anthy-1.2.7.orig/src/scim_anthy_table_editor.cpp scim-anthy-1.2.7/src/scim_anthy_table_editor.cpp
--- scim-anthy-1.2.7.orig/src/scim_anthy_table_editor.cpp	2012-06-04 14:35:15.433829462 +0800
+++ scim-anthy-1.2.7/src/scim_anthy_table_editor.cpp	2012-06-04 15:03:50.948382580 +0800
@@ -134,7 +134,7 @@
     // edit area
     GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
     gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (editor)->vbox), hbox,
+    gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(editor))), hbox,
                         TRUE, TRUE, 0);
     gtk_widget_show (hbox);
 
openSUSE Build Service is sponsored by