summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-04-03 07:11:53 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-04-03 09:53:36 +0500
commit2deda7a0d7aea4963b5a9eaf42c5ebd652ca7709 (patch)
treee52ad19a0c664ac3cf5dbdd3207c433c2245cdb8
parentee92b4a9f2eb1241d7b156a33675fe06cab341c3 (diff)
downloadgnome-screenshot-2deda7a0d7aea4963b5a9eaf42c5ebd652ca7709.tar.gz
interactive-dialog: Return concrete type in _new()
-rw-r--r--src/screenshot-application.c2
-rw-r--r--src/screenshot-interactive-dialog.c2
-rw-r--r--src/screenshot-interactive-dialog.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index c5a18bc..fd3811b 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -692,7 +692,7 @@ capture_clicked_cb (ScreenshotInteractiveDialog *dialog,
static void
screenshot_show_interactive_dialog (ScreenshotApplication *self)
{
- GtkWidget *dialog;
+ ScreenshotInteractiveDialog *dialog;
dialog = screenshot_interactive_dialog_new (GTK_APPLICATION (self));
diff --git a/src/screenshot-interactive-dialog.c b/src/screenshot-interactive-dialog.c
index ba7dc92..ab866b3 100644
--- a/src/screenshot-interactive-dialog.c
+++ b/src/screenshot-interactive-dialog.c
@@ -188,7 +188,7 @@ screenshot_interactive_dialog_init (ScreenshotInteractiveDialog *self)
gtk_adjustment_set_value (self->delay_adjustment, (gdouble) screenshot_config->delay);
}
-GtkWidget *
+ScreenshotInteractiveDialog *
screenshot_interactive_dialog_new (GtkApplication *app)
{
g_return_val_if_fail (GTK_IS_APPLICATION (app), NULL);
diff --git a/src/screenshot-interactive-dialog.h b/src/screenshot-interactive-dialog.h
index e73842c..cd98c1d 100644
--- a/src/screenshot-interactive-dialog.h
+++ b/src/screenshot-interactive-dialog.h
@@ -30,6 +30,6 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (ScreenshotInteractiveDialog, screenshot_interactive_dialog, SCREENSHOT, INTERACTIVE_DIALOG, GtkApplicationWindow)
-GtkWidget *screenshot_interactive_dialog_new (GtkApplication *app);
+ScreenshotInteractiveDialog *screenshot_interactive_dialog_new (GtkApplication *app);
G_END_DECLS