summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-05-12 09:47:58 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-05-12 09:47:58 +0000
commitc459feaab114cecd04266050375badb7b58735c7 (patch)
treeb6f0c5f24be1495685977f8ea707468169b1d167 /tests
parentdc918cbf7594de9c5f23ddb1bae253b4a6b8cd74 (diff)
downloadgtk+-c459feaab114cecd04266050375badb7b58735c7.tar.gz
Fix build errors.
2006-05-12 Alexander Larsson <alexl@redhat.com> * gtk/gtkrecentmanager.c: Fix build errors. * gtk/gtk.symbols: * demos/gtk-demo/printing.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * tests/testprintfileoperation.c: Rename functions from nr_of_pages to n_pages, and num_copies to n_copies to match other gtk+ names. * gtk/gtkmenu.c: (gtk_menu_popdown): Only re-set window group on popdown if we set it on popup (i.e. if there is a parent menu shell). Fixed part of bug #340401 * gtk/gtkwindow.c: Add (contruct) property "transient-for" to GtkWindow. This is needed for the fix to bug #340401. * gtk/gtkprintunixdialog.c: Use the transient-for property on construction and populate the dialog with widgets after that. This fixes bug #340401. More n_pages renames.
Diffstat (limited to 'tests')
-rw-r--r--tests/print-editor.c2
-rw-r--r--tests/testnouiprint.c2
-rw-r--r--tests/testprint.c2
-rw-r--r--tests/testprintfileoperation.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c
index 7b78ac5a2d..4636d85616 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -298,7 +298,7 @@ begin_print (GtkPrintOperation *operation,
}
page_breaks = g_list_reverse (page_breaks);
- gtk_print_operation_set_nr_of_pages (operation, g_list_length (page_breaks) + 1);
+ gtk_print_operation_set_n_pages (operation, g_list_length (page_breaks) + 1);
print_data->page_breaks = page_breaks;
diff --git a/tests/testnouiprint.c b/tests/testnouiprint.c
index 3b0825b2ab..c640063b20 100644
--- a/tests/testnouiprint.c
+++ b/tests/testnouiprint.c
@@ -97,7 +97,7 @@ main (int argc, char **argv)
print = gtk_print_operation_new ();
gtk_print_operation_set_print_settings (print, settings);
- gtk_print_operation_set_nr_of_pages (print, 1);
+ gtk_print_operation_set_n_pages (print, 1);
gtk_print_operation_set_unit (print, GTK_UNIT_MM);
gtk_print_operation_set_show_dialog (print, FALSE);
g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL);
diff --git a/tests/testprint.c b/tests/testprint.c
index 4294fd02f3..4326a8062d 100644
--- a/tests/testprint.c
+++ b/tests/testprint.c
@@ -106,7 +106,7 @@ main (int argc, char **argv)
/* Test some random drawing, with per-page paper settings */
print = gtk_print_operation_new ();
- gtk_print_operation_set_nr_of_pages (print, 2);
+ gtk_print_operation_set_n_pages (print, 2);
gtk_print_operation_set_unit (print, GTK_UNIT_MM);
gtk_print_operation_set_pdf_target (print, "test.pdf");
g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL);
diff --git a/tests/testprintfileoperation.c b/tests/testprintfileoperation.c
index e1c4b5a7d8..e511eb3b69 100644
--- a/tests/testprintfileoperation.c
+++ b/tests/testprintfileoperation.c
@@ -70,7 +70,7 @@ test_print_file_operation_begin_print (GtkPrintOperation *operation, GtkPrintCon
op->num_lines = i;
op->num_pages = (op->num_lines - 1) / op->lines_per_page + 1;
- gtk_print_operation_set_nr_of_pages (operation, op->num_pages);
+ gtk_print_operation_set_n_pages (operation, op->num_pages);
}
static void