[Gnucash-changes] r11849 - gnucash/trunk - Cleanup usage of the
PLUGIN_PAGE_LABEL define.
David Hampton
hampton at cvs.gnucash.org
Sat Nov 5 22:07:22 EST 2005
Author: hampton
Date: 2005-11-05 22:07:21 -0500 (Sat, 05 Nov 2005)
New Revision: 11849
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-embedded-window.c
gnucash/trunk/src/gnome-utils/gnc-embedded-window.h
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/gnome-utils/gnc-main-window.h
gnucash/trunk/src/gnome-utils/gnc-window.h
Log:
Cleanup usage of the PLUGIN_PAGE_LABEL define.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/ChangeLog 2005-11-06 03:07:21 UTC (rev 11849)
@@ -1,5 +1,12 @@
2005-11-05 David Hampton <hampton at employees.org>
+ * src/gnome-utils/gnc-embedded-window.c:
+ * src/gnome-utils/gnc-embedded-window.h:
+ * src/gnome-utils/gnc-main-window.c:
+ * src/gnome-utils/gnc-main-window.h:
+ * src/gnome-utils/gnc-window.h: Cleanup usage of the
+ PLUGIN_PAGE_LABEL define.
+
* Various: Convert to newer method of allocating private data
structures for objects. This allows glib to consolidate the space
for all of the various public and private data structures on an
Modified: gnucash/trunk/src/gnome-utils/gnc-embedded-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-embedded-window.c 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/src/gnome-utils/gnc-embedded-window.c 2005-11-06 03:07:21 UTC (rev 11849)
@@ -121,7 +121,6 @@
priv->page = page;
page->window = GTK_WIDGET(window);
page->notebook_page = gnc_plugin_page_create_widget (page);
- g_object_set_data (G_OBJECT (page->notebook_page), PLUGIN_PAGE_LABEL, page);
gtk_box_pack_end(GTK_BOX(window), page->notebook_page, TRUE, TRUE, 2);
gnc_plugin_page_inserted (page);
Modified: gnucash/trunk/src/gnome-utils/gnc-embedded-window.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-embedded-window.h 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/src/gnome-utils/gnc-embedded-window.h 2005-11-06 03:07:21 UTC (rev 11849)
@@ -42,8 +42,6 @@
G_BEGIN_DECLS
-#define PLUGIN_PAGE_LABEL "plugin-page"
-
/* type macros */
#define GNC_TYPE_EMBEDDED_WINDOW (gnc_embedded_window_get_type ())
#define GNC_EMBEDDED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindow))
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2005-11-06 03:07:21 UTC (rev 11849)
@@ -67,6 +67,9 @@
LAST_SIGNAL
};
+/** This label is used to provide a mapping from a visible page widget
+ * back to the corresponding GncPluginPage object. */
+#define PLUGIN_PAGE_LABEL "plugin-page"
#define PLUGIN_PAGE_IMMUTABLE "page-immutable"
#define PLUGIN_PAGE_CLOSE_BUTTON "close-button"
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.h 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.h 2005-11-06 03:07:21 UTC (rev 11849)
@@ -42,8 +42,6 @@
G_BEGIN_DECLS
-#define PLUGIN_PAGE_LABEL "plugin-page"
-
/* type macros */
#define GNC_TYPE_MAIN_WINDOW (gnc_main_window_get_type ())
#define GNC_MAIN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_MAIN_WINDOW, GncMainWindow))
Modified: gnucash/trunk/src/gnome-utils/gnc-window.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-window.h 2005-11-06 02:47:18 UTC (rev 11848)
+++ gnucash/trunk/src/gnome-utils/gnc-window.h 2005-11-06 03:07:21 UTC (rev 11849)
@@ -46,8 +46,6 @@
G_BEGIN_DECLS
-#define PLUGIN_PAGE_LABEL "plugin-page"
-
/* type macros */
#define GNC_TYPE_WINDOW (gnc_window_get_type ())
#define GNC_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_WINDOW, GncWindow))
More information about the gnucash-changes
mailing list