gnome-commander r1694 - branches/gcmd-1-3/src



Author: epiotr
Date: Mon Apr  7 21:55:17 2008
New Revision: 1694
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1694&view=rev

Log:
Support for <super>, <hyper> and <meta> modifiers (since GTK+ 2.10)

Modified:
   branches/gcmd-1-3/src/eggcellrendererkeys.cc

Modified: branches/gcmd-1-3/src/eggcellrendererkeys.cc
==============================================================================
--- branches/gcmd-1-3/src/eggcellrendererkeys.cc	(original)
+++ branches/gcmd-1-3/src/eggcellrendererkeys.cc	Mon Apr  7 21:55:17 2008
@@ -238,11 +238,17 @@
     static const gchar text_mod1[] = "Alt+";
     static const gchar text_mod2[] = "Mod2+";
     static const gchar text_mod3[] = "Mod3+";
+#ifdef HAVE_GTK_2_10
     static const gchar text_mod4[] = "Mod4+";
+#else
+    static const gchar text_mod4[] = "Super+";
+#endif
     static const gchar text_mod5[] = "Mod5+";
+#ifdef HAVE_GTK_2_10
     static const gchar text_meta[] = "Meta+";
     static const gchar text_super[] = "Super+";
     static const gchar text_hyper[] = "Hyper+";
+#endif
 
     gchar *keyval_name = gdk_keyval_name (gdk_keyval_to_upper (accel_key));
     if (!keyval_name)



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