From a43fce058c3cb69dcca24e58a89d6e0151a35216 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 2 Jul 2016 18:08:38 -0400 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index fbdf51cf4c..82d434a773 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