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 /command | |
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 'command')
-rw-r--r-- | command/src/command.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/command/src/command.c b/command/src/command.c index 231aeb45..2412d123 100644 --- a/command/src/command.c +++ b/command/src/command.c @@ -205,7 +205,10 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet) "on_width_spinbutton_value_changed", G_CALLBACK (width_value_changed), NULL); gtk_builder_connect_signals (builder, command_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); @@ -438,23 +441,23 @@ command_applet_fill (MatePanelApplet* applet) gtk_widget_show_all (GTK_WIDGET (command_applet->applet)); - g_signal_connect(G_OBJECT (command_applet->applet), "destroy", - G_CALLBACK (command_applet_destroy), - command_applet); + g_signal_connect (command_applet->applet, "destroy", + G_CALLBACK (command_applet_destroy), + command_applet); /* GSettings signals */ - g_signal_connect(command_applet->settings, - "changed::" COMMAND_KEY, - G_CALLBACK (settings_command_changed), - command_applet); - g_signal_connect(command_applet->settings, - "changed::" INTERVAL_KEY, - G_CALLBACK (settings_interval_changed), - command_applet); - g_signal_connect(command_applet->settings, - "changed::" WIDTH_KEY, - G_CALLBACK (settings_width_changed), - command_applet); + g_signal_connect (command_applet->settings, "changed::" COMMAND_KEY, + G_CALLBACK (settings_command_changed), + command_applet); + + g_signal_connect (command_applet->settings, "changed::" INTERVAL_KEY, + G_CALLBACK (settings_interval_changed), + command_applet); + + g_signal_connect (command_applet->settings, "changed::" WIDTH_KEY, + G_CALLBACK (settings_width_changed), + command_applet); + g_settings_bind (command_applet->settings, SHOW_ICON_KEY, command_applet->image, |