GTK: Fix builds against latest stable GLib with MSVC

GLib-2.68.x now considers warning C4098 ('void' function returning a value) as
an error, so avoid doing that.
This commit is contained in:
Chun-wei Fan 2021-04-16 11:36:18 +08:00
parent 8df32e93be
commit 153019a794
3 changed files with 6 additions and 6 deletions

View File

@ -66,9 +66,9 @@ gtk_css_image_paintable_snapshot (GtkCssImage *image,
{
GtkCssImagePaintable *paintable = GTK_CSS_IMAGE_PAINTABLE (image);
return gdk_paintable_snapshot (get_paintable (paintable),
snapshot,
width, height);
gdk_paintable_snapshot (get_paintable (paintable),
snapshot,
width, height);
}
static GtkCssImage *

View File

@ -102,7 +102,7 @@ gtk_native_layout (GtkNative *self,
int width,
int height)
{
return GTK_NATIVE_GET_IFACE (self)->layout (self, width, height);
GTK_NATIVE_GET_IFACE (self)->layout (self, width, height);
}
static void
@ -258,7 +258,7 @@ gtk_native_get_surface_transform (GtkNative *self,
g_return_if_fail (x != NULL);
g_return_if_fail (y != NULL);
return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
}
/**

View File

@ -132,7 +132,7 @@ gtk_shortcut_action_print (GtkShortcutAction *self,
g_return_if_fail (GTK_IS_SHORTCUT_ACTION (self));
g_return_if_fail (string != NULL);
return GTK_SHORTCUT_ACTION_GET_CLASS (self)->print (self, string);
GTK_SHORTCUT_ACTION_GET_CLASS (self)->print (self, string);
}
/**