diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-06-19 03:52:10 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-19 03:52:10 +0000 |
commit | e6cdab1bfc10eb334ac5a8b5a4696c19dbcba1e0 (patch) | |
tree | 2b3524ba2013a27d2d65181f785e51eeb975ae21 /tests | |
parent | b57f1571de1bd09e849ec44e2c9823c1c6c42fc8 (diff) | |
download | gdk-pixbuf-e6cdab1bfc10eb334ac5a8b5a4696c19dbcba1e0.tar.gz |
Don't open a display connection.
2006-06-18 Matthias Clasen <mclasen@redhat.com>
* tests/testnouiprint.c (main): Don't open a display connection.
* gtk/gtkprintbackend.c (gtk_print_backend_load_modules): Make
this work without a display connection. (339702, Alexander Larsson)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testnouiprint.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/testnouiprint.c b/tests/testnouiprint.c index 585c5ddbe..1c39ae9a7 100644 --- a/tests/testnouiprint.c +++ b/tests/testnouiprint.c @@ -84,12 +84,8 @@ main (int argc, char **argv) GtkPrintOperationResult res; GtkPrintSettings *settings; - - /* Unfortunately we need a display for the XSettings to get the - list of backends... */ - /* gtk_parse_args (&argc, &argv); */ - gtk_init (&argc, &argv); - + g_type_init (); + loop = g_main_loop_new (NULL, TRUE); settings = gtk_print_settings_new (); |