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



commit 06d83b96b9f48094a54de282839287a13f66869a
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]