[gtk+] print dialog: Apply initial capabilities
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] print dialog: Apply initial capabilities
- Date: Sat, 2 Jul 2016 22:11:18 +0000 (UTC)
commit a43fce058c3cb69dcca24e58a89d6e0151a35216
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 2 18:08:38 2016 -0400
print dialog: Apply initial capabilities
I was struggling to understand why calling
gtk_print_unix_dialog_set_manual_capabilities (...,0)
was not having the expected effect of hiding the preview
button. The initial capabilities were not applied at all.
gtk/gtkprintunixdialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index fbdf51c..82d434a 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -825,6 +825,8 @@ gtk_print_unix_dialog_constructed (GObject *object)
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
g_object_unref (button);
}
+
+ update_dialog_from_capabilities (GTK_PRINT_UNIX_DIALOG (object));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]