summaryrefslogtreecommitdiff
path: root/src/load-graph.cpp
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-17 13:09:12 +0100
committerinfirit <[email protected]>2014-12-17 13:53:30 +0100
commit0077af40e5926d19e48413ab22eb21d634de5a64 (patch)
treef98376156e87cd23b487ffb6826d5d8022f7f6e8 /src/load-graph.cpp
parent5dbc8cd3144d70a2b818704d4274ce7289514622 (diff)
downloadmate-system-monitor-0077af40e5926d19e48413ab22eb21d634de5a64.tar.bz2
mate-system-monitor-0077af40e5926d19e48413ab22eb21d634de5a64.tar.xz
Gtk3: Rename callback function to reflect changed signal.
Diffstat (limited to 'src/load-graph.cpp')
-rw-r--r--src/load-graph.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index 752a4d4..2ff1716 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -175,7 +175,7 @@ static void draw_background(LoadGraph *g) {
/* Redraws the backing buffer for the load graph and updates the window */
void
-load_graph_draw (LoadGraph *g)
+load_graph_queue_draw (LoadGraph *g)
{
/* repaint */
gtk_widget_queue_draw (g->disp);
@@ -197,13 +197,13 @@ load_graph_configure (GtkWidget *widget,
g->clear_background();
- load_graph_draw (g);
+ load_graph_queue_draw (g);
return TRUE;
}
#if GTK_CHECK_VERSION(3,0,0)
-static gboolean load_graph_expose (GtkWidget *widget, cairo_t *context, gpointer data_ptr)
+static gboolean load_graph_draw (GtkWidget *widget, cairo_t *context, gpointer data_ptr)
#else
static gboolean load_graph_expose (GtkWidget *widget, GdkEventExpose *event, gpointer data_ptr)
#endif
@@ -571,7 +571,7 @@ load_graph_update (gpointer user_data)
}
if (g->draw)
- load_graph_draw (g);
+ load_graph_queue_draw (g);
g->render_counter++;
@@ -701,7 +701,7 @@ LoadGraph::LoadGraph(guint type)
g->disp = gtk_drawing_area_new ();
gtk_widget_show (g->disp);
#if GTK_CHECK_VERSION(3,0,0)
- g_signal_connect (G_OBJECT (g->disp), "draw", G_CALLBACK (load_graph_expose), g);
+ g_signal_connect (G_OBJECT (g->disp), "draw", G_CALLBACK (load_graph_draw), g);
#else
g_signal_connect (G_OBJECT (g->disp), "expose_event", G_CALLBACK (load_graph_expose), g);
#endif