[gimp] Bug 787039 - Make clear that the PDF import dialog selects all pages...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 787039 - Make clear that the PDF import dialog selects all pages...
- Date: Sun, 24 Sep 2017 21:57:51 +0000 (UTC)
commit ce4cc1a768b32d7ab182738828c753b2632a2492
Author: Jehan <jehan girinstud io>
Date: Sun Sep 24 23:54:49 2017 +0200
Bug 787039 - Make clear that the PDF import dialog selects all pages...
... by default.
Even though selecting nothing is equivalent to selecting all in our
code, let's just explicitly select all pages before showing the dialog
so to make this behavior explicit.
plug-ins/common/file-pdf-load.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index 22a79d1..b846686 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -1263,6 +1263,10 @@ load_dialog (PopplerDocument *doc,
g_object_unref (page);
g_free (label);
}
+ /* Since selecting none will be equivalent to selecting all, this is
+ * only useful as a feedback for the default behavior of selecting all
+ * pages. */
+ gimp_page_selector_select_all (selector);
g_signal_connect_swapped (selector, "activate",
G_CALLBACK (gtk_window_activate_default),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]