ekiga r7178 - trunk/src/gui



Author: sfre
Date: Wed Oct  8 18:51:19 2008
New Revision: 7178
URL: http://svn.gnome.org/viewvc/ekiga?rev=7178&view=rev

Log:
Revert "Drop the GConf schema version test."

This reverts commit 9d5802c850b9419f0c0ec74e9d28c908dbd9c3e9
that was pushed by mistake

Modified:
   trunk/src/gui/conf.cpp
   trunk/src/gui/main.cpp

Modified: trunk/src/gui/conf.cpp
==============================================================================
--- trunk/src/gui/conf.cpp	(original)
+++ trunk/src/gui/conf.cpp	Wed Oct  8 18:51:19 2008
@@ -169,6 +169,21 @@
 
 
 /* The functions */
+gboolean 
+gnomemeeting_conf_check ()
+{
+  int conf_test = -1;
+  
+  /* Check the config is ok */
+  conf_test = gm_conf_get_int (GENERAL_KEY "gconf_test_age");
+  
+  if (conf_test != SCHEMA_AGE) 
+    return FALSE;
+
+  return TRUE;
+}
+
+
 void
 gnomemeeting_conf_init ()
 {

Modified: trunk/src/gui/main.cpp
==============================================================================
--- trunk/src/gui/main.cpp	(original)
+++ trunk/src/gui/main.cpp	Wed Oct  8 18:51:19 2008
@@ -4339,6 +4339,12 @@
   }
 #endif
 
+  /* Configuration database initialization */
+#ifdef HAVE_GCONF
+  if (!gnomemeeting_conf_check ()) 
+    error = 3;
+#endif
+
   /* Init gm_conf */
   gm_conf_watch ();
 
@@ -4389,6 +4395,16 @@
       title = g_strdup (_("No usable audio codecs detected"));
       msg = g_strdup (_("Ekiga didn't find any usable audio codec. Make sure that your installation is correct."));
       break;
+#ifdef HAVE_GCONF
+    case 3:
+      {
+	gchar *key_name = g_strdup ("\"/apps/" PACKAGE_NAME "/general/gconf_test_age\"");
+	title = g_strdup (_("Configuration database corruption"));
+	msg = g_strdup_printf (_("Ekiga got an invalid value for the configuration key %s.\n\nIt probably means that your configuration schemas have not been correctly installed or that the permissions are not correct.\n\nPlease check the FAQ (http://www.ekiga.org/), the troubleshooting section of the GConf site (http://www.gnome.org/projects/gconf/) or the mailing list archives for more information (http://mail.gnome.org) about this problem."), key_name);
+	g_free (key_name);
+      }
+      break;
+#endif
     default:
       break;
     }



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