[gnome-screenshot/wip/exalm/cleanups: 12/15] interactive-dialog: Return concrete type in _new()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot/wip/exalm/cleanups: 12/15] interactive-dialog: Return concrete type in _new()
- Date: Fri, 3 Apr 2020 04:54:52 +0000 (UTC)
commit 2deda7a0d7aea4963b5a9eaf42c5ebd652ca7709
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 3 07:11:53 2020 +0500
interactive-dialog: Return concrete type in _new()
src/screenshot-application.c | 2 +-
src/screenshot-interactive-dialog.c | 2 +-
src/screenshot-interactive-dialog.h | 2 +-
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]