[gnome-screenshot/wip/exalm/cleanups: 11/16] interactive-dialog: Pass self to all signal handlers



commit 454f8a1675967ab90f7fd115b7292de766350405
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Apr 3 06:57:19 2020 +0500

    interactive-dialog: Pass self to all signal handlers

 src/screenshot-interactive-dialog.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/screenshot-interactive-dialog.c b/src/screenshot-interactive-dialog.c
index eca5a85..8e5ceea 100644
--- a/src/screenshot-interactive-dialog.c
+++ b/src/screenshot-interactive-dialog.c
@@ -95,14 +95,15 @@ selection_toggled_cb (GtkToggleButton             *button,
 }
 
 static void
-delay_spin_value_changed_cb (GtkSpinButton *button)
+delay_spin_value_changed_cb (GtkSpinButton               *button,
+                             ScreenshotInteractiveDialog *self)
 {
   screenshot_config->delay = gtk_spin_button_get_value_as_int (button);
 }
 
 static void
-include_pointer_toggled_cb (GtkSwitch *toggle,
-                            gpointer         data)
+include_pointer_toggled_cb (GtkSwitch                   *toggle,
+                            ScreenshotInteractiveDialog *self)
 {
   screenshot_config->include_pointer = gtk_switch_get_active (toggle);
   gtk_switch_set_state (toggle, gtk_switch_get_active (toggle));
@@ -177,7 +178,8 @@ screenshot_interactive_dialog_init (ScreenshotInteractiveDialog *self)
 }
 
 GtkWidget *
-screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
+screenshot_interactive_dialog_new (CaptureClickedCallback f,
+                                   gpointer               user_data)
 {
   ScreenshotApplication *self = user_data;
   ScreenshotInteractiveDialog *dialog;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]