gnome-commander r2356 - in branches/gcmd-1-3: . src



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

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

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-data.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-data.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-data.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-data.cc	Mon Dec 15 18:45:54 2008
@@ -1397,12 +1397,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]