Revision 18604,
746 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18603,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #include <gtk/gtk.h> |
---|
2 | #include <libgnomeprint/gnome-print-config.h> |
---|
3 | #include <libgnomeprintui/gnome-print-paper-selector.h> |
---|
4 | |
---|
5 | int |
---|
6 | main (int argc, char * argv[]) |
---|
7 | { |
---|
8 | GnomePrintConfig *config; |
---|
9 | GtkWidget *ps; |
---|
10 | GtkWidget *dialog; |
---|
11 | |
---|
12 | gtk_init (&argc, (char ***) &argv); |
---|
13 | |
---|
14 | config = gnome_print_config_default (); |
---|
15 | ps = gnome_paper_selector_new (config); |
---|
16 | dialog = gtk_dialog_new (); |
---|
17 | gtk_box_pack_start_defaults (GTK_BOX (GTK_DIALOG (dialog)->vbox), ps); |
---|
18 | gtk_widget_show (ps); |
---|
19 | gtk_widget_show (dialog); |
---|
20 | |
---|
21 | gtk_timeout_add (2000, (GSourceFunc) gtk_main_quit, NULL); |
---|
22 | gtk_main (); |
---|
23 | |
---|
24 | if (!gnome_print_config_set (config, "Printer", "PDF")) |
---|
25 | g_assert_not_reached (); |
---|
26 | |
---|
27 | gtk_timeout_add (2000, (GSourceFunc) gtk_main_quit, NULL); |
---|
28 | gtk_main (); |
---|
29 | |
---|
30 | return 0; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.