2011-04-10 [colin] 3.7.9cvs10
[claws.git] / src / message_search.c
index 1814c53fdbc426878febe0349abcf88e467860e7..855dec011f1ac85eaa87686a46bc744565102855 100644 (file)
@@ -186,7 +186,7 @@ static void message_search_create(void)
        gtk_widget_show (body_label);
        gtk_box_pack_start (GTK_BOX (hbox1), body_label, FALSE, FALSE, 0);
 
-       body_entry = gtk_combo_box_new_with_entry();
+       body_entry = gtk_combo_box_entry_new_text ();
        gtk_combo_box_set_active(GTK_COMBO_BOX(body_entry), -1);
        if (prefs_common.message_search_history)
                combobox_set_popdown_strings(GTK_COMBO_BOX(body_entry),
@@ -275,7 +275,7 @@ static void message_search_execute(gboolean backward)
        gboolean all_searched = FALSE;
        gchar *body_str;
 
-       body_str = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(search_window.body_entry));
+       body_str = gtk_combo_box_get_active_text(GTK_COMBO_BOX(search_window.body_entry));
        if (!body_str)
                body_str = gtk_editable_get_chars(
                                GTK_EDITABLE(gtk_bin_get_child(GTK_BIN(search_window.body_entry))),0,-1);