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.
This commit is contained in:
Matthias Clasen 2016-07-02 18:08:38 -04:00
parent 0d30ad279f
commit a43fce058c

View File

@ -825,6 +825,8 @@ gtk_print_unix_dialog_constructed (GObject *object)
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button); gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
g_object_unref (button); g_object_unref (button);
} }
update_dialog_from_capabilities (GTK_PRINT_UNIX_DIALOG (object));
} }
static void static void