[Gnucash-changes] Remove obsolete code for catching (scheme) option
changes.
David Hampton
hampton at cvs.gnucash.org
Sat Oct 8 15:37:30 EDT 2005
Log Message:
-----------
Remove obsolete code for catching (scheme) option changes. This file
already has support for catching gconf option changes.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash/src/gnome:
window-main-summarybar.c
Revision Data
-------------
Index: window-main-summarybar.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/window-main-summarybar.c,v
retrieving revision 1.12.4.10
retrieving revision 1.12.4.11
diff -Lsrc/gnome/window-main-summarybar.c -Lsrc/gnome/window-main-summarybar.c -u -r1.12.4.10 -r1.12.4.11
--- src/gnome/window-main-summarybar.c
+++ src/gnome/window-main-summarybar.c
@@ -50,7 +50,6 @@
GtkWidget * totals_combo;
GtkListStore *datamodel;
int component_id;
- SCM callback_id;
int cnxn_id;
} GNCMainSummary;
@@ -512,7 +511,6 @@
{
GNCMainSummary * summary = data;
gnc_gconf_remove_anon_notification(GCONF_SECTION, summary->cnxn_id);
- gnc_unregister_option_change_callback_id(summary->callback_id);
gnc_unregister_gui_component(summary->component_id);
g_free(summary);
}
@@ -525,13 +523,6 @@
}
static void
-summarybar_option_change_handler(gpointer user_data)
-{
- GNCMainSummary * summary = user_data;
- gnc_main_window_summary_refresh(summary);
-}
-
-static void
gconf_client_notify_cb (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
@@ -564,10 +555,6 @@
retval->component_id = gnc_register_gui_component(WINDOW_SUMMARYBAR_CM_CLASS,
summarybar_refresh_handler,
NULL, retval);
- retval->callback_id = gnc_register_option_change_callback(summarybar_option_change_handler,
- retval,
- "Summarybar",
- NULL);
gnc_gui_component_watch_entity_type (retval->component_id,
GNC_ID_ACCOUNT,
GNC_EVENT_MODIFY | GNC_EVENT_DESTROY);
More information about the gnucash-changes
mailing list