[gimp] libgimp: fix unused function (Win32).
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: fix unused function (Win32).
- Date: Wed, 9 Oct 2019 14:43:20 +0000 (UTC)
commit 9b328167abdf3f4078e1de4acbe1685c9ba57d00
Author: Jehan <jehan girinstud io>
Date: Wed Oct 9 16:34:08 2019 +0200
libgimp: fix unused function (Win32).
Fixes:
> libgimp/gimpui.c:402:1: warning: 'gimp_window_transient_realized' defined but not used
[-Wunused-function]
libgimp/gimpui.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libgimp/gimpui.c b/libgimp/gimpui.c
index ac305053de..5457364daa 100644
--- a/libgimp/gimpui.c
+++ b/libgimp/gimpui.c
@@ -63,8 +63,10 @@ static void gimp_ui_theme_changed (GFileMonitor *monitor,
GFileMonitorEvent event_type,
GtkCssProvider *css_provider);
static void gimp_ensure_modules (void);
+#ifndef GDK_WINDOWING_WIN32
static void gimp_window_transient_realized (GtkWidget *window,
GdkWindow *parent);
+#endif
static gboolean gimp_window_set_transient_for (GtkWindow *window,
GdkWindow *parent);
@@ -398,6 +400,7 @@ gimp_ensure_modules (void)
}
}
+#ifndef GDK_WINDOWING_WIN32
static void
gimp_window_transient_realized (GtkWidget *window,
GdkWindow *parent)
@@ -405,6 +408,7 @@ gimp_window_transient_realized (GtkWidget *window,
if (gtk_widget_get_realized (window))
gdk_window_set_transient_for (gtk_widget_get_window (window), parent);
}
+#endif
static gboolean
gimp_window_set_transient_for (GtkWindow *window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]