summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooserdefault.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-02 18:19:46 +0200
committerMatthias Clasen <mclasen@redhat.com>2010-10-15 16:58:27 -0400
commite7f51ef6a411dc4c784c3edc67df294288de3f75 (patch)
treeece84455ae96925ea61849f2af984b953ecd3a95 /gtk/gtkrecentchooserdefault.c
parent99cfbecf466193f2a132e4476f92723b8c51e4a5 (diff)
downloadgtk+-e7f51ef6a411dc4c784c3edc67df294288de3f75.tar.gz
Use the new GtkComboBoxText API
Also remove mentions of the old text convenience API from the docs, and point to GtkComboBoxText instead.
Diffstat (limited to 'gtk/gtkrecentchooserdefault.c')
-rw-r--r--gtk/gtkrecentchooserdefault.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index a89899b790..88a891a858 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -41,7 +41,7 @@
#include "gtkcellrenderertext.h"
#include "gtkcheckmenuitem.h"
#include "gtkclipboard.h"
-#include "gtkcombobox.h"
+#include "gtkcomboboxtext.h"
#include "gtkentry.h"
#include "gtkeventbox.h"
#include "gtkexpander.h"
@@ -474,7 +474,7 @@ gtk_recent_chooser_default_constructor (GType type,
impl->filter_combo_hbox = gtk_hbox_new (FALSE, 12);
- impl->filter_combo = gtk_combo_box_new_text ();
+ impl->filter_combo = gtk_combo_box_text_new ();
gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (impl->filter_combo), FALSE);
g_signal_connect (impl->filter_combo, "changed",
G_CALLBACK (filter_combo_changed_cb), impl);
@@ -1300,9 +1300,9 @@ gtk_recent_chooser_default_add_filter (GtkRecentChooser *chooser,
name = gtk_recent_filter_get_name (filter);
if (!name)
name = _("Untitled filter");
-
- gtk_combo_box_append_text (GTK_COMBO_BOX (impl->filter_combo), name);
-
+
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (impl->filter_combo), name);
+
if (!g_slist_find (impl->filters, impl->current_filter))
set_current_filter (impl, filter);