diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-08-18 23:55:01 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-08-18 23:55:01 +0000 |
commit | 3852c508f907f9aaef87083829339a1f7a22038f (patch) | |
tree | 036fc059084711cf9745d782ff4083788ae59fa7 /gtk/iax2_analysis.c | |
parent | a6d3e1fa30edc0feed68079d64b524478a044149 (diff) |
From Anders on -dev:
Brutal patch to build with GTK 3.0
With the enclosed patch Wireshark builds on GTK3.0. Colors are messed up etc but
it should be possible to start to fix things and actually see what's happening.
I wouldn't be surprised if many patches leading up to this are faulty. Color
handling should probably be rewritten to use GdkRGBA in many places etc.
http://www.wireshark.org/lists/wireshark-dev/201108/msg00383.html
svn path=/trunk/; revision=38612
Diffstat (limited to 'gtk/iax2_analysis.c')
-rw-r--r-- | gtk/iax2_analysis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/iax2_analysis.c b/gtk/iax2_analysis.c index 685f22fa8f..05fc79c340 100644 --- a/gtk/iax2_analysis.c +++ b/gtk/iax2_analysis.c @@ -1563,12 +1563,14 @@ static void create_filter_box(dialog_graph_graph_t *dgg, GtkWidget *box, int num gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); +#if GTK_CHECK_VERSION(3,0,0) +#else gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &dgg->color); gtk_widget_modify_fg(label, GTK_STATE_ACTIVE, &dgg->color); gtk_widget_modify_fg(label, GTK_STATE_PRELIGHT, &dgg->color); gtk_widget_modify_fg(label, GTK_STATE_SELECTED, &dgg->color); gtk_widget_modify_fg(label, GTK_STATE_INSENSITIVE, &dgg->color); - +#endif return; } |