gnome-commander r2355 - in trunk: . src



Author: epiotr
Date: Mon Dec 15 18:45:34 2008
New Revision: 2355
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2355&view=rev

Log:
Do not set default profiles for first-time users if there is no support for GRegex

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-data.cc

Modified: trunk/src/gnome-cmd-data.cc
==============================================================================
--- trunk/src/gnome-cmd-data.cc	(original)
+++ trunk/src/gnome-cmd-data.cc	Mon Dec 15 18:45:34 2008
@@ -1394,12 +1394,14 @@
         // add a few default templates here - for new users
         AdvrenameConfig::Profile p;
 
+#if GLIB_CHECK_VERSION (2, 14, 0)
         p.name = "CamelCase";
         p.template_string = "$N";
         p.regexes.push_back(AdvrenameConfig::Profile::Regex("\\s*\\b(\\w)(\\w*)\\b", "\\u\\1\\L\\2\\E", FALSE));
         p.regexes.push_back(AdvrenameConfig::Profile::Regex("\\.(.+)$", ".\\L\\1", FALSE));
 
         advrename_defaults.profiles.push_back(p);
+#endif
     }
 
     load_intviewer_defaults();



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