[gtk+] gdk/x11: Constify argument
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk/x11: Constify argument
- Date: Mon, 17 Oct 2016 11:01:43 +0000 (UTC)
commit 923b868400f65e9d4f570b736412d4be56103d6a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Oct 15 21:13:04 2016 +0100
gdk/x11: Constify argument
gdk/x11/gdkwindow-x11.c | 4 ++--
gdk/x11/gdkx11window.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index b2e314d..5744d66 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -3587,8 +3587,8 @@ gdk_x11_window_set_frame_extents (GdkWindow *window,
* Since: 3.2
*/
void
-gdk_x11_window_set_theme_variant (GdkWindow *window,
- char *variant)
+gdk_x11_window_set_theme_variant (GdkWindow *window,
+ const char *variant)
{
gdk_x11_window_set_utf8_property (window, "_GTK_THEME_VARIANT",
variant ? variant : "");
diff --git a/gdk/x11/gdkx11window.h b/gdk/x11/gdkx11window.h
index d366d3b..b4fac2f 100644
--- a/gdk/x11/gdkx11window.h
+++ b/gdk/x11/gdkx11window.h
@@ -64,7 +64,7 @@ void gdk_x11_window_set_utf8_property (GdkWindow *window,
const gchar *value);
GDK_AVAILABLE_IN_3_2
void gdk_x11_window_set_theme_variant (GdkWindow *window,
- char *variant);
+ const char *variant);
GDK_DEPRECATED_IN_3_12_FOR(gdk_window_set_shadow_width)
void gdk_x11_window_set_frame_extents (GdkWindow *window,
int left,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]