diff options
author | Shixin Zeng <zeng.shixin@gmail.com> | 2009-08-20 23:56:52 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2009-08-20 23:56:52 +0300 |
commit | 02457e3a93d8aaea3ea78118eba9a0366cd8c2bb (patch) | |
tree | f7dae947849aff7b3350b9a43a4e11d9a5e5b133 /gtk/gtkprintoperation.c | |
parent | bbe16ec60fa2080459578f596b21657b86f39672 (diff) | |
download | gtk+-02457e3a93d8aaea3ea78118eba9a0366cd8c2bb.tar.gz |
Return value from non-void function
Diffstat (limited to 'gtk/gtkprintoperation.c')
-rw-r--r-- | gtk/gtkprintoperation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c index e9b5bb8eca..c8a85e7749 100644 --- a/gtk/gtkprintoperation.c +++ b/gtk/gtkprintoperation.c @@ -3243,7 +3243,7 @@ gtk_print_operation_get_has_selection (GtkPrintOperation *op) gint gtk_print_operation_get_n_pages_to_print (GtkPrintOperation *op) { - g_return_if_fail (GTK_IS_PRINT_OPERATION (op)); + g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op), -1); return op->priv->nr_of_pages_to_print; } |