diff options
author | Hans Breuer <hans@breuer.org> | 2008-06-21 09:49:00 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2008-06-21 09:49:00 +0000 |
commit | d3ce448c208da3bdc27367ee8e3459e2e211ba78 (patch) | |
tree | 90754b3e79876e0ac04d2e7518ef85f60cfb90af /gtk/gtkprintoperation-win32.c | |
parent | 743eebc1a5bfda14eb152c07c72dc63ad87394e7 (diff) | |
download | gtk+-d3ce448c208da3bdc27367ee8e3459e2e211ba78.tar.gz |
fix 'function' : incompatible types - from 'struct _cairo *' to 'struct
2008-06-21 Hans Breuer <hans@breuer.org>
* gtk/gtkprintoperation-win32.c(1713) : fix 'function' : incompatible
types - from 'struct _cairo *' to 'struct _cairo_surface *' by
passing the surface to cairo_surface_show_page(), not the context
* gtk/gtkprintoperation-win32.c(866) : get rid of warning C4018:
'<' : signed/unsigned mismatch by using guint for the loop
* gtk/gtkmenu.c(gtk_menu_get_property) : property 'menu::active' is
an uint, gtk_menu_get_active() returns the widget pointer. Convert
the latter to the former by calculating the index in menu::children
Also fix some occurences of g_return_if_fail() where
g_return_val_if_fail() was meant
svn path=/trunk/; revision=20662
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index d306a8ad63..f368e42839 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -844,7 +844,7 @@ static void dialog_to_print_settings (GtkPrintOperation *op, LPPRINTDLGEXW printdlgex) { - int i; + guint i; GtkPrintSettings *settings; settings = gtk_print_settings_new (); @@ -1710,7 +1710,7 @@ _gtk_print_operation_platform_backend_preview_end_page (GtkPrintOperation *op, { HDC dc; - cairo_surface_show_page (cr); + cairo_surface_show_page (surface); /* TODO: Enhanced metafiles don't support multiple pages. */ |