[gtk/wip/matthiasc/popup5: 177/186] Avoid compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 177/186] Avoid compiler warnings
- Date: Tue, 28 May 2019 20:23:49 +0000 (UTC)
commit 4aba8a9d10f0e15549ce1770d88ca19c6168fd78
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 27 16:26:19 2019 +0000
Avoid compiler warnings
Avoid priv being flagged as unused on win32.
gtk/gtkwindow.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0d422f6414..5cb64664d8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -9555,7 +9555,8 @@ gtk_window_export_handle (GtkWindow *window,
}
#endif
- g_warning ("Couldn't export handle, unsupported windowing system");
+ g_warning ("Couldn't export handle for %s surface, unsupported windowing system",
+ G_OBJECT_TYPE_NAME (priv->surface));
return FALSE;
}
@@ -9569,8 +9570,12 @@ gtk_window_unexport_handle (GtkWindow *window)
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
{
gdk_wayland_surface_unexport_handle (priv->surface);
+ return;
}
#endif
+
+ g_warning ("Couldn't unexport handle for %s surface, unsupported windowing system",
+ G_OBJECT_TYPE_NAME (priv->surface));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]