mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
GtkPrintUnixDialog: Define children with a GtkBuilder template
This commit is contained in:
parent
0f16d7c6d5
commit
9accb95b9f
@ -1110,6 +1110,7 @@ COMPOSITE_TEMPLATES = \
|
||||
gtklockbutton.ui \
|
||||
gtkmessagedialog.ui \
|
||||
gtkpagesetupunixdialog.ui \
|
||||
gtkprintunixdialog.ui \
|
||||
gtkrecentchooserdefault.ui \
|
||||
gtkscalebutton.ui \
|
||||
gtkstatusbar.ui
|
||||
|
@ -25,6 +25,7 @@
|
||||
<file compressed="true">gtklockbutton.ui</file>
|
||||
<file compressed="true">gtkmessagedialog.ui</file>
|
||||
<file compressed="true">gtkpagesetupunixdialog.ui</file>
|
||||
<file compressed="true">gtkprintunixdialog.ui</file>
|
||||
<file compressed="true">gtkrecentchooserdefault.ui</file>
|
||||
<file compressed="true">gtkscalebutton.ui</file>
|
||||
<file compressed="true">gtkstatusbar.ui</file>
|
||||
|
File diff suppressed because it is too large
Load Diff
1733
gtk/gtkprintunixdialog.ui
Normal file
1733
gtk/gtkprintunixdialog.ui
Normal file
File diff suppressed because it is too large
Load Diff
@ -269,6 +269,15 @@ test_page_setup_unix_dialog_basic (void)
|
||||
gtk_widget_destroy (widget);
|
||||
}
|
||||
|
||||
static void
|
||||
test_print_unix_dialog_basic (void)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
widget = gtk_print_unix_dialog_new ("Go Print !", NULL);
|
||||
g_assert (GTK_IS_PRINT_UNIX_DIALOG (widget));
|
||||
gtk_widget_destroy (widget);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
@ -303,6 +312,7 @@ main (int argc, char **argv)
|
||||
|
||||
#ifdef HAVE_UNIX_PRINT_WIDGETS
|
||||
g_test_add_func ("/Template/UnixPrint/GtkPageSetupUnixDialog/Basic", test_page_setup_unix_dialog_basic);
|
||||
g_test_add_func ("/Template/UnixPrint/GtkPrintUnixDialog/Basic", test_print_unix_dialog_basic);
|
||||
#endif
|
||||
|
||||
return g_test_run();
|
||||
|
Loading…
Reference in New Issue
Block a user