aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rtp_analysis.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-08-18 23:55:01 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-08-18 23:55:01 +0000
commit3852c508f907f9aaef87083829339a1f7a22038f (patch)
tree036fc059084711cf9745d782ff4083788ae59fa7 /gtk/rtp_analysis.c
parenta6d3e1fa30edc0feed68079d64b524478a044149 (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/rtp_analysis.c')
-rw-r--r--gtk/rtp_analysis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/rtp_analysis.c b/gtk/rtp_analysis.c
index cc1fb73351..a2f1b171b3 100644
--- a/gtk/rtp_analysis.c
+++ b/gtk/rtp_analysis.c
@@ -1605,12 +1605,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;
}