diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-02-27 06:38:49 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-02-27 06:38:49 +0000 |
commit | ccf3253f359b6634070aae8b8caf80f376d84837 (patch) | |
tree | 61f819216985e80f61c9a803d8ebb9fadd414d36 /gtk/simple_dialog.c | |
parent | c637027427d3cccfdf079f81e0be4a9435bfd517 (diff) | |
download | wireshark-ccf3253f359b6634070aae8b8caf80f376d84837.tar.gz wireshark-ccf3253f359b6634070aae8b8caf80f376d84837.tar.bz2 wireshark-ccf3253f359b6634070aae8b8caf80f376d84837.zip |
From Floren Drouin:
This patch add a test on the GTK version to avoid a warning with the "gtk-label-select-on-focus" configuration parameter, introduced in GTK-2.9.0.
svn path=/trunk/; revision=20936
Diffstat (limited to 'gtk/simple_dialog.c')
-rw-r--r-- | gtk/simple_dialog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c index e97170f1cd..85531bc474 100644 --- a/gtk/simple_dialog.c +++ b/gtk/simple_dialog.c @@ -172,6 +172,8 @@ display_simple_dialog(gint type, gint btn_mask, char *message) #if GTK_MAJOR_VERSION >= 2 gtk_label_set_markup(GTK_LABEL(msg_label), message); gtk_label_set_selectable(GTK_LABEL(msg_label), TRUE); +#endif +#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 9) || GTK_MAJOR_VERSION > 2 g_object_set(gtk_widget_get_settings(msg_label), "gtk-label-select-on-focus", FALSE, NULL); #endif |