From d0143245ea98ae8305f8b82b5df57918260c4ca1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 25 Mar 2013 20:46:19 +0000 Subject: [PATCH] removed useless code since gtk2 is no more supported --- src/ui_graph.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/ui_graph.c b/src/ui_graph.c index f21cbff..c2b5698 100644 --- a/src/ui_graph.c +++ b/src/ui_graph.c @@ -53,16 +53,10 @@ GtkWidget *ui_graph_create(struct ui_psensor *ui) w_graph = gtk_drawing_area_new(); - if (GTK_MAJOR_VERSION == 2) - g_signal_connect(GTK_WIDGET(w_graph), - "expose-event", - G_CALLBACK(on_expose_event), - ui); - else - g_signal_connect(GTK_WIDGET(w_graph), - "draw", - G_CALLBACK(on_expose_event), - ui); + g_signal_connect(GTK_WIDGET(w_graph), + "draw", + G_CALLBACK(on_expose_event), + ui); gtk_widget_add_events(w_graph, GDK_BUTTON_PRESS_MASK); -- 2.7.4