diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-02-12 07:59:25 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-02-12 08:01:51 -0500 |
commit | d05d92451604f7fd24c390571d1df6cdc9f31400 (patch) | |
tree | 2b4e9cc464d04f82c4e6fe081d7de3804f88c4ed /tests/testnouiprint.c | |
parent | bfd66fe3a38353508a4b084610b6e06608619162 (diff) | |
download | gtk+-d05d92451604f7fd24c390571d1df6cdc9f31400.tar.gz |
Silence more compiler warnings
Diffstat (limited to 'tests/testnouiprint.c')
-rw-r--r-- | tests/testnouiprint.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/testnouiprint.c b/tests/testnouiprint.c index 0dcc489a8d..bde1a02793 100644 --- a/tests/testnouiprint.c +++ b/tests/testnouiprint.c @@ -71,7 +71,7 @@ draw_page (GtkPrintOperation *operation, /* Font Fill */ cairo_set_source_rgb (cr, 0, 0.0, 1.0); cairo_fill (cr); - + g_object_unref (layout); } @@ -79,24 +79,20 @@ draw_page (GtkPrintOperation *operation, int main (int argc, char **argv) { - GMainLoop *loop; GtkPrintOperation *print; - GtkPrintOperationResult res; GtkPrintSettings *settings; - g_type_init (); - - loop = g_main_loop_new (NULL, TRUE); + g_type_init (); settings = gtk_print_settings_new (); /* gtk_print_settings_set_printer (settings, "printer"); */ - + print = gtk_print_operation_new (); gtk_print_operation_set_print_settings (print, settings); gtk_print_operation_set_n_pages (print, 1); gtk_print_operation_set_unit (print, GTK_UNIT_MM); g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL); - res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT, NULL, NULL); + gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT, NULL, NULL); return 0; } |