diff options
author | rbuj <[email protected]> | 2020-12-29 10:38:15 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-28 21:08:12 +0100 |
commit | 3b2fd26415133da19eee10ae18b61df19d5ce80f (patch) | |
tree | d8848f632cd5ce0a7fac47dd9258dd7eb56c40f2 /multiload | |
parent | e948feaf6a87c411503aee62f97334e500cb80f1 (diff) | |
download | mate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.bz2 mate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.xz |
Remove unnecessary casts on g_signal_connect calls
Diffstat (limited to 'multiload')
-rw-r--r-- | multiload/src/load-graph.c | 12 | ||||
-rw-r--r-- | multiload/src/main.c | 20 |
2 files changed, 16 insertions, 16 deletions
diff --git a/multiload/src/load-graph.c b/multiload/src/load-graph.c index fbff7d7d..23fbacde 100644 --- a/multiload/src/load-graph.c +++ b/multiload/src/load-graph.c @@ -471,17 +471,17 @@ load_graph_new (MultiloadApplet *ma, guint n, const gchar *label, GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_PRESS_MASK); - g_signal_connect (G_OBJECT (g->disp), "draw", + g_signal_connect (g->disp, "draw", G_CALLBACK (load_graph_expose), g); - g_signal_connect (G_OBJECT(g->disp), "configure_event", + g_signal_connect (g->disp, "configure_event", G_CALLBACK (load_graph_configure), g); - g_signal_connect (G_OBJECT(g->disp), "destroy", + g_signal_connect (g->disp, "destroy", G_CALLBACK (load_graph_destroy), g); - g_signal_connect (G_OBJECT(g->disp), "button-press-event", + g_signal_connect (g->disp, "button-press-event", G_CALLBACK (load_graph_clicked), g); - g_signal_connect (G_OBJECT(g->disp), "enter-notify-event", + g_signal_connect (g->disp, "enter-notify-event", G_CALLBACK(load_graph_enter_cb), g); - g_signal_connect (G_OBJECT(g->disp), "leave-notify-event", + g_signal_connect (g->disp, "leave-notify-event", G_CALLBACK(load_graph_leave_cb), g); gtk_box_pack_start (GTK_BOX (g->box), g->disp, TRUE, TRUE, 0); diff --git a/multiload/src/main.c b/multiload/src/main.c index 124020ba..3d88e6b0 100644 --- a/multiload/src/main.c +++ b/multiload/src/main.c @@ -533,16 +533,16 @@ multiload_applet_new(MatePanelApplet *applet, const gchar *iid, gpointer data) g_object_unref (action_group); - g_signal_connect(G_OBJECT(applet), "change_size", - G_CALLBACK(multiload_change_size_cb), ma); - g_signal_connect(G_OBJECT(applet), "change_orient", - G_CALLBACK(multiload_change_orient_cb), ma); - g_signal_connect(G_OBJECT(applet), "destroy", - G_CALLBACK(multiload_destroy_cb), ma); - g_signal_connect(G_OBJECT(applet), "button_press_event", - G_CALLBACK(multiload_button_press_event_cb), ma); - g_signal_connect(G_OBJECT(applet), "key_press_event", - G_CALLBACK(multiload_key_press_event_cb), ma); + g_signal_connect (applet, "change_size", + G_CALLBACK (multiload_change_size_cb), ma); + g_signal_connect (applet, "change_orient", + G_CALLBACK (multiload_change_orient_cb), ma); + g_signal_connect (applet, "destroy", + G_CALLBACK (multiload_destroy_cb), ma); + g_signal_connect (applet, "button_press_event", + G_CALLBACK (multiload_button_press_event_cb), ma); + g_signal_connect (applet, "key_press_event", + G_CALLBACK (multiload_key_press_event_cb), ma); multiload_applet_refresh (ma); |