]> spindle.queued.net Git - midori/commitdiff
Use gtk_combo_box_text_new_with_entry in Statusbar Features
authorChristian Dywan <christian@twotoasts.de>
Thu, 20 Oct 2011 20:47:27 +0000 (22:47 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 20 Oct 2011 20:48:51 +0000 (22:48 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/878449
extensions/statusbar-features.c
katze/gtk3-compat.h

index b3d2c1cbc50d77cee954e38987a6f7e892fb2d52..a6b8acc56e4d8bce02613ec59e34fe2912919b81 100644 (file)
@@ -154,10 +154,10 @@ statusbar_features_app_add_browser_cb (MidoriApp*       app,
     gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
     button = katze_property_proxy (settings, "identify-as", "custom-user-agent");
     gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
-    button = gtk_combo_box_entry_new_text ();
+    button = gtk_combo_box_text_new_with_entry ();
     gtk_entry_set_width_chars (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (button))), 4);
     for (i = 0; i < G_N_ELEMENTS (zoom_levels); i++)
-        gtk_combo_box_append_text (GTK_COMBO_BOX (button), zoom_levels[i].label);
+        gtk_combo_box_text_append_text (GTK_COMBO_BOX (button), zoom_levels[i].label);
     gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
     g_signal_connect (button, "changed",
         G_CALLBACK (statusbar_features_zoom_level_changed_cb), browser);
index c40aca270be3299455b9bb6a238a6be49aba9096..b1b3b103a9aead9e68523656ed9bc8ce7b599171 100644 (file)
@@ -77,6 +77,7 @@ gtk_tool_item_set_tooltip_text         (GtkToolItem*       toolitem,
 #if !GTK_CHECK_VERSION (2, 24 ,0)
     #define gtk_combo_box_text_append_text gtk_combo_box_append_text
     #define gtk_combo_box_text_new gtk_combo_box_new_text
+    #define gtk_combo_box_text_new_with_entry gtk_combo_box_entry_new_text
     #define gtk_combo_box_text_get_active_text gtk_combo_box_get_active_text
     #define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
     #define GtkComboBoxText GtkComboBox