diff options
author | rbuj <[email protected]> | 2020-06-29 18:06:33 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-08 16:50:57 +0200 |
commit | 90f0f5c59768a3eee3f9529695f68cd45a9e5844 (patch) | |
tree | 45bf27cec0fb0f72fe61a776df7f38008eafadd8 /capplets | |
parent | 0657cd03d2cfbeb09164db42f85bd5d2329919ff (diff) | |
download | mate-control-center-90f0f5c59768a3eee3f9529695f68cd45a9e5844.tar.bz2 mate-control-center-90f0f5c59768a3eee3f9529695f68cd45a9e5844.tar.xz |
Remove unused variable from capplet_notebook_scroll_event_cb
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/appearance/appearance-main.c | 14 | ||||
-rw-r--r-- | capplets/common/capplet-util.c | 3 | ||||
-rw-r--r-- | capplets/common/capplet-util.h | 2 | ||||
-rw-r--r-- | capplets/default-applications/mate-da-capplet.c | 7 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties.c | 7 | ||||
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 7 | ||||
-rw-r--r-- | capplets/network/mate-network-properties.c | 7 | ||||
-rw-r--r-- | capplets/windows/mate-window-properties.c | 7 |
8 files changed, 31 insertions, 23 deletions
diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c index 031040d8..4574aaed 100644 --- a/capplets/appearance/appearance-main.c +++ b/capplets/appearance/appearance-main.c @@ -208,9 +208,10 @@ main (int argc, char **argv) nb = appearance_capplet_get_widget (data, "main_notebook"); gtk_widget_add_events (nb, GDK_SCROLL_MASK); - g_signal_connect (nb, "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (w)); + g_signal_connect (nb, + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); if (start_page != NULL) { gchar *page_name; @@ -242,9 +243,10 @@ main (int argc, char **argv) nb_custom_theme = appearance_capplet_get_widget (data, "notebook2"); gtk_widget_add_events (nb_custom_theme, GDK_SCROLL_MASK); - g_signal_connect (nb_custom_theme, "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (w)); + g_signal_connect (nb_custom_theme, + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); /* start the mainloop */ gtk_main (); diff --git a/capplets/common/capplet-util.c b/capplets/common/capplet-util.c index b9fde6bb..c78ab2d7 100644 --- a/capplets/common/capplet-util.c +++ b/capplets/common/capplet-util.c @@ -171,7 +171,8 @@ capplet_file_delete_recursive (GFile *file, GError **error) } gboolean -capplet_dialog_page_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, GtkWindow *window) +capplet_notebook_scroll_event_cb (GtkWidget *widget, + GdkEventScroll *event) { GtkNotebook *notebook = GTK_NOTEBOOK (widget); GtkWidget *child, *event_widget, *action_widget; diff --git a/capplets/common/capplet-util.h b/capplets/common/capplet-util.h index 78fcfe13..3527d2b8 100644 --- a/capplets/common/capplet-util.h +++ b/capplets/common/capplet-util.h @@ -39,7 +39,7 @@ void capplet_help (GtkWindow *parent, char const *section); void capplet_set_icon (GtkWidget *window, char const *icon_file_name); gboolean capplet_file_delete_recursive (GFile *directory, GError **error); -gboolean capplet_dialog_page_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, GtkWindow *window); +gboolean capplet_notebook_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event); void capplet_init (GOptionContext *context, int *argc, char ***argv); #endif /* __CAPPLET_UTIL_H */ diff --git a/capplets/default-applications/mate-da-capplet.c b/capplets/default-applications/mate-da-capplet.c index 1e85e9b6..f70e0ee0 100644 --- a/capplets/default-applications/mate-da-capplet.c +++ b/capplets/default-applications/mate-da-capplet.c @@ -789,9 +789,10 @@ show_dialog(MateDACapplet* capplet, const gchar* start_page) GtkNotebook* nb = GTK_NOTEBOOK(get_widget("preferred_apps_notebook")); gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); - g_signal_connect (GTK_WIDGET (nb), "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (capplet->window)); + g_signal_connect (GTK_WIDGET (nb), + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); if (start_page != NULL) { diff --git a/capplets/keyboard/mate-keyboard-properties.c b/capplets/keyboard/mate-keyboard-properties.c index bc02a3bc..cf2ef62f 100644 --- a/capplets/keyboard/mate-keyboard-properties.c +++ b/capplets/keyboard/mate-keyboard-properties.c @@ -245,9 +245,10 @@ main (int argc, char **argv) GtkNotebook* nb = GTK_NOTEBOOK (WID ("keyboard_notebook")); gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); - g_signal_connect (GTK_WIDGET (nb), "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (WID ("keyboard_dialog"))); + g_signal_connect (GTK_WIDGET (nb), + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); if (switch_to_typing_break_page) { gtk_notebook_set_current_page (nb, 4); diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index a3c06e60..09ee47a7 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -465,9 +465,10 @@ main (int argc, char **argv) GtkNotebook* nb = GTK_NOTEBOOK (WID ("prefs_widget")); gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); - g_signal_connect (GTK_WIDGET (nb), "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (dialog_win)); + g_signal_connect (GTK_WIDGET (nb), + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); if (start_page != NULL) { diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c index 8400e822..a4d546e9 100644 --- a/capplets/network/mate-network-properties.c +++ b/capplets/network/mate-network-properties.c @@ -482,9 +482,10 @@ main (int argc, char **argv) GtkNotebook* nb = GTK_NOTEBOOK (_gtk_builder_get_widget (builder, "notebook1")); gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); - g_signal_connect (GTK_WIDGET (nb), "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (widget)); + g_signal_connect (GTK_WIDGET (nb), + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); capplet_set_icon (widget, "network-server"); gtk_widget_show_all (widget); diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index 90e0b785..d8e3f565 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -346,9 +346,10 @@ main (int argc, char **argv) /* Notebook */ nb = GTK_WIDGET (gtk_builder_get_object (builder, "nb")); gtk_widget_add_events (nb, GDK_SCROLL_MASK); - g_signal_connect (nb, "scroll-event", - G_CALLBACK (capplet_dialog_page_scroll_event_cb), - GTK_WINDOW (dialog_win)); + g_signal_connect (nb, + "scroll-event", + G_CALLBACK (capplet_notebook_scroll_event_cb), + NULL); /* Compositing manager */ compositing_checkbutton = GTK_WIDGET (gtk_builder_get_object (builder, "compositing_checkbutton")); |