diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-07-31 16:13:37 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-08-01 14:37:20 +0500 |
commit | e5e8e6463c10025496f5968694987d3e64611cbf (patch) | |
tree | 7d98f6771225ac60f8b1b58b13521935d84facff /src | |
parent | 5e136b9f9cfeca2d67a76086cadbbbd675d07ef4 (diff) | |
download | gnome-screenshot-e5e8e6463c10025496f5968694987d3e64611cbf.tar.gz |
dialog: Use HdyApplicationWindow
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshot-dialog.c | 4 | ||||
-rw-r--r-- | src/screenshot-dialog.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c index 51de41f..43714b3 100644 --- a/src/screenshot-dialog.c +++ b/src/screenshot-dialog.c @@ -29,7 +29,7 @@ struct _ScreenshotDialog { - GtkApplicationWindow parent_instance; + HdyApplicationWindow parent_instance; GdkPixbuf *screenshot; GdkPixbuf *preview_image; @@ -42,7 +42,7 @@ struct _ScreenshotDialog gint drag_y; }; -G_DEFINE_TYPE (ScreenshotDialog, screenshot_dialog, GTK_TYPE_APPLICATION_WINDOW) +G_DEFINE_TYPE (ScreenshotDialog, screenshot_dialog, HDY_TYPE_APPLICATION_WINDOW) enum { SIGNAL_SAVE, diff --git a/src/screenshot-dialog.h b/src/screenshot-dialog.h index 7419154..9c1a903 100644 --- a/src/screenshot-dialog.h +++ b/src/screenshot-dialog.h @@ -19,13 +19,14 @@ #pragma once -#include <gtk/gtk.h> +#define HANDY_USE_UNSTABLE_API +#include <handy.h> G_BEGIN_DECLS #define SCREENSHOT_TYPE_DIALOG (screenshot_dialog_get_type()) -G_DECLARE_FINAL_TYPE (ScreenshotDialog, screenshot_dialog, SCREENSHOT, DIALOG, GtkApplicationWindow) +G_DECLARE_FINAL_TYPE (ScreenshotDialog, screenshot_dialog, SCREENSHOT, DIALOG, HdyApplicationWindow) ScreenshotDialog *screenshot_dialog_new (GtkApplication *app, GdkPixbuf *screenshot, |