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 /timerapplet | |
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 'timerapplet')
-rw-r--r-- | timerapplet/src/timerapplet.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/timerapplet/src/timerapplet.c b/timerapplet/src/timerapplet.c index 6e1fc2d4..e72d8e21 100644 --- a/timerapplet/src/timerapplet.c +++ b/timerapplet/src/timerapplet.c @@ -333,7 +333,10 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet) "on_seconds_spinbutton_value_changed", G_CALLBACK (timer_spin_button_value_changed), NULL); gtk_builder_connect_signals (builder, applet); - g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); + + g_signal_connect (dialog, "response", + G_CALLBACK (gtk_widget_destroy), + dialog); g_object_unref (builder); @@ -400,12 +403,13 @@ timer_applet_fill (MatePanelApplet* applet_widget) gtk_widget_show_all (GTK_WIDGET (applet->applet)); gtk_widget_hide (GTK_WIDGET (applet->pause_image)); - g_signal_connect(G_OBJECT (applet->applet), "destroy", - G_CALLBACK (timer_applet_destroy), - applet); + g_signal_connect (applet->applet, "destroy", + G_CALLBACK (timer_applet_destroy), + applet); - g_signal_connect_swapped(GTK_WIDGET (applet->applet), "button-release-event", - G_CALLBACK (timer_applet_click), applet); + g_signal_connect_swapped (applet->applet, "button-release-event", + G_CALLBACK (timer_applet_click), + applet); /* set up context menu */ applet->action_group = gtk_action_group_new ("Timer Applet Actions"); @@ -418,8 +422,9 @@ timer_applet_fill (MatePanelApplet* applet_widget) timer_callback (applet); /* GSettings callback */ - g_signal_connect (G_OBJECT (applet->settings), "changed", - G_CALLBACK (timer_settings_changed), applet); + g_signal_connect (applet->settings, "changed", + G_CALLBACK (timer_settings_changed), + applet); return TRUE; } |