[gnome-shell] [ShellDocSystem] Check GTK+ version for constness of argument



commit 5a3c3efbeb639d0d7e224b5dd5cb7e8c4c72131e
Author: Colin Walters <walters verbum org>
Date:   Tue Dec 15 16:29:21 2009 -0500

    [ShellDocSystem] Check GTK+ version for constness of argument

 src/shell-doc-system.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-doc-system.c b/src/shell-doc-system.c
index c58b34b..ecb9973 100644
--- a/src/shell-doc-system.c
+++ b/src/shell-doc-system.c
@@ -255,7 +255,12 @@ shell_doc_system_open (ShellDocSystem *system,
   else
     {
       char *app_name;
-      char *app_exec, *app_exec_quoted;
+#if GTK_MINOR_VERSION >= 18
+      const char *app_exec;
+#else
+      char *app_exec;
+#endif
+      char *app_exec_quoted;
       guint count;
       time_t time;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]