[anjuta/gsettings-migration: 48/65] class-gen: Don't the user name/email from preferences. Get it from the system instead.
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 48/65] class-gen: Don't the user name/email from preferences. Get it from the system instead.
- Date: Sun, 17 Oct 2010 09:36:47 +0000 (UTC)
commit 5d7d516723c1350c6d8266d91298e7da2ee9e6a8
Author: Johannes Schmid <jhs gnome org>
Date: Sun Oct 10 13:04:51 2010 +0200
class-gen: Don't the user name/email from preferences. Get it from the system instead.
We still need a way to receive the user email as configured in the GNOME preferences.
plugins/class-gen/plugin.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/class-gen/plugin.c b/plugins/class-gen/plugin.c
index 3073b34..7576341 100644
--- a/plugins/class-gen/plugin.c
+++ b/plugins/class-gen/plugin.c
@@ -438,6 +438,8 @@ cg_plugin_window_response_cb (G_GNUC_UNUSED GtkDialog *dialog,
}
}
+#define PREF_SCHEMA "org.gnome.anjuta"
+
static void
iwizard_activate (IAnjutaWizard *wiz, G_GNUC_UNUSED GError **err)
{
@@ -455,10 +457,9 @@ iwizard_activate (IAnjutaWizard *wiz, G_GNUC_UNUSED GError **err)
cg_plugin->window = cg_window_new ();
- user_name = anjuta_preferences_get (cg_plugin->prefs,
- "user-name");
- user_email = anjuta_preferences_get (cg_plugin->prefs,
- "user-email");
+ user_name = g_strdup(g_get_real_name ());
+ /* FIXME: */
+ user_email = NULL;
if (user_name != NULL)
cg_window_set_author (cg_plugin->window, user_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]