aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/prefs_dlg.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-24 17:25:52 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-24 17:25:52 +0000
commitda955bb116854ed92933626e714cd9a3aa814454 (patch)
treec62df10395eca34d69b3c856a8ec03e9e83c897c /gtk/prefs_dlg.c
parent1c09e4a6945499a9038f58915c0a796bb71185c5 (diff)
Replace deprecated functions.
svn path=/trunk/; revision=38186
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r--gtk/prefs_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c
index ba37c8700d..6dae47ff54 100644
--- a/gtk/prefs_dlg.c
+++ b/gtk/prefs_dlg.c
@@ -57,7 +57,7 @@
#include "gtk/help_dlg.h"
#include "gtk/keys.h"
#include "gtk/uat_gui.h"
-
+#include "gtk/old-gtk-compat.h"
#ifdef HAVE_LIBPCAP
#ifdef _WIN32
@@ -787,13 +787,13 @@ create_preference_option_menu(GtkWidget *main_tb, int table_position,
set_option_label(main_tb, table_position, label_text, tooltip_text);
/* Create a menu from the enumvals */
- combo_box = gtk_combo_box_new_text ();
+ combo_box = gtk_combo_box_text_new();
if (tooltip_text != NULL)
gtk_widget_set_tooltip_text(combo_box, tooltip_text);
menu_idx = 0;
for (enum_valp = enumvals, idx = 0; enum_valp->name != NULL;
enum_valp++, idx++) {
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), enum_valp->description);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), enum_valp->description);
if (enum_valp->value == current_val)
menu_idx = idx;
}