diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-04-11 15:14:55 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-04-11 15:14:55 +0000 |
commit | 8fcf19fad55039ec3598bbf837dc2eeae93ef0c0 (patch) | |
tree | e2b61e7ade0ce8834f988d81c616ce8c90477ff3 /gtk/prefs_dlg.c | |
parent | b686f1fa306fc3f6754c7c8c3581ff42f350cdf9 (diff) | |
download | wireshark-8fcf19fad55039ec3598bbf837dc2eeae93ef0c0.tar.gz wireshark-8fcf19fad55039ec3598bbf837dc2eeae93ef0c0.tar.bz2 wireshark-8fcf19fad55039ec3598bbf837dc2eeae93ef0c0.zip |
prefs_dlg: gtk_label_get() --> gtk_label_get_text()
svn path=/trunk/; revision=28033
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r-- | gtk/prefs_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 687aa4a0f8..a7fdde19f5 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -722,14 +722,14 @@ create_preference_radio_buttons(GtkWidget *main_tb, int table_position, static gint label_to_enum_val(GtkWidget *label, const enum_val_t *enumvals) { - char *label_string; + const gchar *label_string; int i; /* Get the label's text, and translate it to a value. We match only the descriptions, as those are what appear in the option menu items or as labels for radio buttons. We fail if we don't find a match, as that "can't happen". */ - gtk_label_get(GTK_LABEL(label), &label_string); + label_string = gtk_label_get_text(GTK_LABEL(label)); for (i = 0; enumvals[i].name != NULL; i++) { if (g_ascii_strcasecmp(label_string, enumvals[i].description) == 0) { |