[gimp] web-page: Fix use of deprecated API



commit 335047fc7f9d5139d4da979b4c57f0a0b9da42c5
Author: Mukund Sivaraman <muks banu com>
Date:   Fri Apr 8 18:08:06 2011 +0530

    web-page: Fix use of deprecated API

 plug-ins/common/web-page.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/common/web-page.c b/plug-ins/common/web-page.c
index cd34ba0..d54620f 100644
--- a/plug-ins/common/web-page.c
+++ b/plug-ins/common/web-page.c
@@ -311,17 +311,17 @@ webpage_dialog (void)
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
   gtk_widget_show (label);
 
-  combo = gtk_combo_box_new_text ();
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
-                             _("Huge"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
-                             _("Large"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
-                             _("Default"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
-                             _("Small"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
-                             _("Tiny"));
+  combo = gtk_combo_box_text_new ();
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
+                                  _("Huge"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
+                                  _("Large"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
+                                  _("Default"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
+                                  _("Small"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
+                                  _("Tiny"));
 
   switch (webpagevals.font_size)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]