AUDIT: r14945 - gnucash/trunk - Lessen restriction of the parameter whoami of the gnc_gconf_add/
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Oct 9 12:45:54 EDT 2006
Author: andi5
Date: 2006-10-09 12:45:53 -0400 (Mon, 09 Oct 2006)
New Revision: 14945
Trac: http://svn.gnucash.org/trac/changeset/14945
Modified:
gnucash/trunk/
gnucash/trunk/src/core-utils/gnc-gconf-utils.c
gnucash/trunk/src/core-utils/gnc-gconf-utils.h
gnucash/trunk/src/gnome-utils/dialog-utils.c
gnucash/trunk/src/gnome/dialog-print-check.c
Log:
Lessen restriction of the parameter whoami of the gnc_gconf_add/
remove_notification functions. Now the pair of section and whoami has to
be unique, as GncMainWindow adds notifications to two different
sections. Extends r14675.
Remove a superfluous leading slash and doubly defined gconf key macros.
BP
Property changes on: gnucash/trunk
___________________________________________________________________
Name: svk:merge
- 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:704
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13379
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:13366
+ 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:705
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13379
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:13366
Modified: gnucash/trunk/src/core-utils/gnc-gconf-utils.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-gconf-utils.c 2006-10-09 16:45:40 UTC (rev 14944)
+++ gnucash/trunk/src/core-utils/gnc-gconf-utils.c 2006-10-09 16:45:53 UTC (rev 14945)
@@ -29,8 +29,8 @@
#include "gnc-gconf-utils.h"
#define APP_GNUCASH "/apps/gnucash"
-#define CLIENT_TAG "%s-client"
-#define NOTIFY_TAG "%s-notify_id"
+#define CLIENT_TAG "%s-%s-client"
+#define NOTIFY_TAG "%s-%s-notify_id"
static GConfClient *our_client = NULL;
static guint gconf_general_cb_id = 0;
@@ -787,8 +787,8 @@
/*
* Save the values needed to undo this later.
*/
- client_tag = g_strdup_printf(CLIENT_TAG, whoami);
- notify_tag = g_strdup_printf(NOTIFY_TAG, whoami);
+ client_tag = g_strdup_printf(CLIENT_TAG, section, whoami);
+ notify_tag = g_strdup_printf(NOTIFY_TAG, section, whoami);
g_object_set_data(object, client_tag, client);
g_object_set_data(object, notify_tag, GUINT_TO_POINTER(id));
g_free(notify_tag);
@@ -858,11 +858,11 @@
/*
* Remove any gconf notifications
*/
- client_tag = g_strdup_printf(CLIENT_TAG, whoami);
+ client_tag = g_strdup_printf(CLIENT_TAG, section, whoami);
client = g_object_get_data(object, client_tag);
path = gnc_gconf_section_name(section);
if (client) {
- notify_tag = g_strdup_printf(NOTIFY_TAG, whoami);
+ notify_tag = g_strdup_printf(NOTIFY_TAG, section, whoami);
id = GPOINTER_TO_UINT(g_object_get_data(object, notify_tag));
gconf_client_notify_remove(client, id);
gconf_client_remove_dir(client, path, NULL);
Modified: gnucash/trunk/src/core-utils/gnc-gconf-utils.h
===================================================================
--- gnucash/trunk/src/core-utils/gnc-gconf-utils.h 2006-10-09 16:45:40 UTC (rev 14944)
+++ gnucash/trunk/src/core-utils/gnc-gconf-utils.h 2006-10-09 16:45:53 UTC (rev 14945)
@@ -56,7 +56,7 @@
#define GCONF_WARNINGS_PERM "general/warnings/permanent"
/* Keys used across multiple modules */
-#define DESKTOP_GNOME_INTERFACE "/desktop/gnome/interface"
+#define DESKTOP_GNOME_INTERFACE "desktop/gnome/interface"
#define KEY_TOOLBAR_STYLE "toolbar_style"
#define KEY_SAVE_GEOMETRY "save_window_geometry"
#define KEY_LAST_PATH "last_path"
@@ -767,8 +767,8 @@
* 'object' argument to this function as another of its arguments.
*
* @param whoami A magic value that must match up this call to the
- * corresponding call to gnc_gconf_remove_notification(). This value
- * should be unique across all callers.
+ * corresponding call to gnc_gconf_remove_notification(). The pair of
+ * section and whoami should be unique across all callers.
*/
void gnc_gconf_add_notification (GObject *object,
const gchar *section,
@@ -827,8 +827,8 @@
* notification function to remove from GConf.
*
* @param whoami A magic value that must match up this call to the
- * corresponding call to gnc_gconf_add_notification(). This value
- * should be unique across all callers.
+ * corresponding call to gnc_gconf_add_notification(). The pair of
+ * section and whoami should be unique across all callers.
*/
void gnc_gconf_remove_notification (GObject *object,
const gchar *section,
Modified: gnucash/trunk/src/gnome/dialog-print-check.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-print-check.c 2006-10-09 16:45:40 UTC (rev 14944)
+++ gnucash/trunk/src/gnome/dialog-print-check.c 2006-10-09 16:45:53 UTC (rev 14945)
@@ -45,7 +45,6 @@
#define GCONF_SECTION "dialogs/print_checks"
#define KEY_CHECK_FORMAT "check_format"
#define KEY_CHECK_POSITION "check_position"
-#define KEY_DATE_FORMAT "date_format"
#define KEY_DATE_FORMAT_USER "date_format_custom"
#define KEY_CUSTOM_PAYEE "custom_payee"
#define KEY_CUSTOM_DATE "custom_date"
Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-10-09 16:45:40 UTC (rev 14944)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-10-09 16:45:53 UTC (rev 14945)
@@ -50,9 +50,6 @@
#define WINDOW_POSITION "window_position"
#define WINDOW_GEOMETRY "window_geometry"
-#define DESKTOP_GNOME_INTERFACE "/desktop/gnome/interface"
-#define KEY_TOOLBAR_STYLE "toolbar_style"
-
/* =========================================================== */
static void
More information about the gnucash-changes
mailing list