GtkPrintUnixDialog: Define children with a GtkBuilder template

This commit is contained in:
Tristan Van Berkom 2013-03-28 15:06:05 +09:00
parent 0f16d7c6d5
commit 9accb95b9f
5 changed files with 1954 additions and 753 deletions

View File

@ -1110,6 +1110,7 @@ COMPOSITE_TEMPLATES = \
gtklockbutton.ui \
gtkmessagedialog.ui \
gtkpagesetupunixdialog.ui \
gtkprintunixdialog.ui \
gtkrecentchooserdefault.ui \
gtkscalebutton.ui \
gtkstatusbar.ui

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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();