X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_graph.c;h=0b9b41b7400eafdb78aa796eba668a371a868cb9;hb=f3b05dae619a7909bd7422b3a82422c9442aa114;hp=62cadb9890d9ab9837ff93a82340f831f6454d00;hpb=646cca4ec91956f644870cc97c2720b4a0f555da;p=psensor.git diff --git a/src/ui_graph.c b/src/ui_graph.c index 62cadb9..0b9b41b 100644 --- a/src/ui_graph.c +++ b/src/ui_graph.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -18,8 +18,6 @@ */ #include "graph.h" #include "ui_graph.h" -#include "ui_pref.h" -#include "ui_sensorpref.h" static int on_graph_clicked(GtkWidget *widget, GdkEventButton *event, gpointer data) @@ -47,11 +45,13 @@ on_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data) return FALSE; } -GtkWidget *ui_graph_create(struct ui_psensor *ui) +void ui_graph_create(struct ui_psensor *ui) { GtkWidget *w_graph; - w_graph = gtk_drawing_area_new(); + log_debug("ui_graph_create()"); + + w_graph = ui->w_graph; g_signal_connect(GTK_WIDGET(w_graph), "draw", @@ -64,5 +64,5 @@ GtkWidget *ui_graph_create(struct ui_psensor *ui) "button_press_event", (GCallback) on_graph_clicked, ui); - return w_graph; + log_debug("ui_graph_create() ends"); }