forked from AuroraMiddleware/gtk
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:
parent
0d30ad279f
commit
a43fce058c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user