diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-04-03 04:19:29 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-04-03 09:53:36 +0500 |
commit | 59b9beba923ab1763efdac2fa50a076729cad7bc (patch) | |
tree | 5aa371b4fae7d0eb2a0af93471f5b81694667b9a /src | |
parent | 309e990086a93411fa4c52c8e70924b3124589f1 (diff) | |
download | gnome-screenshot-59b9beba923ab1763efdac2fa50a076729cad7bc.tar.gz |
dialog: Remove screenshot_dialog_get_dialog()
This function was a stopgap solution, now that ScreenshotDialgo is a widget
itself, it's not needed anymore.
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshot-application.c | 4 | ||||
-rw-r--r-- | src/screenshot-dialog.c | 6 | ||||
-rw-r--r-- | src/screenshot-dialog.h | 1 |
3 files changed, 2 insertions, 9 deletions
diff --git a/src/screenshot-application.c b/src/screenshot-application.c index 30272f3..ef520f5 100644 --- a/src/screenshot-application.c +++ b/src/screenshot-application.c @@ -142,7 +142,7 @@ save_pixbuf_handle_error (ScreenshotApplication *self, g_autofree gchar *detail = g_strdup_printf (_("A file named ā%sā already exists in ā%sā"), file_name, folder_name); - gint response = screenshot_show_dialog (GTK_WINDOW (screenshot_dialog_get_dialog (dialog)), + gint response = screenshot_show_dialog (GTK_WINDOW (dialog), GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO, _("Overwrite existing file?"), @@ -158,7 +158,7 @@ save_pixbuf_handle_error (ScreenshotApplication *self, } else { - screenshot_show_dialog (GTK_WINDOW (screenshot_dialog_get_dialog (dialog)), + screenshot_show_dialog (GTK_WINDOW (dialog), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Unable to capture a screenshot"), diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c index ff4416a..c3b6f0b 100644 --- a/src/screenshot-dialog.c +++ b/src/screenshot-dialog.c @@ -354,12 +354,6 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog, } GtkWidget * -screenshot_dialog_get_dialog (ScreenshotDialog *dialog) -{ - return GTK_WIDGET (dialog); -} - -GtkWidget * screenshot_dialog_get_filename_entry (ScreenshotDialog *dialog) { return dialog->filename_entry; diff --git a/src/screenshot-dialog.h b/src/screenshot-dialog.h index 42fa3ef..a929ac4 100644 --- a/src/screenshot-dialog.h +++ b/src/screenshot-dialog.h @@ -46,7 +46,6 @@ char *screenshot_dialog_get_folder (ScreenshotDialog *dialog); char *screenshot_dialog_get_filename (ScreenshotDialog *dialog); void screenshot_dialog_set_busy (ScreenshotDialog *dialog, gboolean busy); -GtkWidget *screenshot_dialog_get_dialog (ScreenshotDialog *dialog); GtkWidget *screenshot_dialog_get_filename_entry (ScreenshotDialog *dialog); G_END_DECLS |