aboutsummaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-04-15 20:49:27 +0200
committerThomas White <taw@bitwiz.me.uk>2018-04-15 20:49:27 +0200
commitc7ed5d6987429b249d318f830393a2a530388925 (patch)
treefcbc223484d10a51431a11b1407814246f82c06c /src/print.c
parente1b15231f87c06623730c1fdd7357480a9381971 (diff)
Tidy up nw_entries_p
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c
index b0e3a84..ce52ba8 100644
--- a/src/print.c
+++ b/src/print.c
@@ -291,9 +291,8 @@ static void print_draw(GtkPrintOperation *op, GtkPrintContext *ctx, gint page,
}
-void print_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
+void run_printing(struct presentation *p, GtkWidget *parent)
{
- struct presentation *p = vp;
GtkPrintOperation *print;
GtkPrintOperationResult res;
struct print_stuff *ps;
@@ -317,7 +316,7 @@ void print_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
res = gtk_print_operation_run(print,
GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
- GTK_WINDOW(NULL), NULL);
+ GTK_WINDOW(parent), NULL);
if ( res == GTK_PRINT_OPERATION_RESULT_APPLY ) {
if ( print_settings != NULL ) {