Revision: 1844 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1844&view=re... Author: colombanw Date: 2011-01-14 00:23:00 +0000 (Fri, 14 Jan 2011)
Log Message: ----------- GeanyGenDoc: Use proper GObject naming conventions for types
It is NS_TYPE_OBJ, not NS_OBJ_TYPE.
Modified Paths: -------------- trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.c trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.h trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.c trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.h
Modified: trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.c =================================================================== --- trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.c 2011-01-13 23:38:03 UTC (rev 1843) +++ trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.c 2011-01-14 00:23:00 UTC (rev 1844) @@ -103,7 +103,7 @@ GtkWidget *item;
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GGD_DOCTYPE_SELECTOR_TYPE, + GGD_TYPE_DOCTYPE_SELECTOR, GgdDoctypeSelectorPrivate); /* Set scrolled window properties */ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (self), @@ -469,7 +469,7 @@ GtkWidget * ggd_doctype_selector_new (void) { - return g_object_new (GGD_DOCTYPE_SELECTOR_TYPE, NULL); + return g_object_new (GGD_TYPE_DOCTYPE_SELECTOR, NULL); }
gboolean
Modified: trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.h =================================================================== --- trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.h 2011-01-13 23:38:03 UTC (rev 1843) +++ trunk/geany-plugins/geanygendoc/src/ggd-widget-doctype-selector.h 2011-01-14 00:23:00 UTC (rev 1844) @@ -29,11 +29,11 @@ GGD_BEGIN_PLUGIN_API
-#define GGD_DOCTYPE_SELECTOR_TYPE (ggd_doctype_selector_get_type ()) -#define GGD_DOCTYPE_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GGD_DOCTYPE_SELECTOR_TYPE, GgdDoctypeSelector)) -#define GGD_DOCTYPE_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GGD_DOCTYPE_SELECTOR_TYPE, GgdDoctypeSelectorClass)) -#define GGD_IS_DOCTYPE_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GGD_DOCTYPE_SELECTOR_TYPE)) -#define GGD_IS_DOCTYPE_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GGD_DOCTYPE_SELECTOR_TYPE)) +#define GGD_TYPE_DOCTYPE_SELECTOR (ggd_doctype_selector_get_type ()) +#define GGD_DOCTYPE_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GGD_TYPE_DOCTYPE_SELECTOR, GgdDoctypeSelector)) +#define GGD_DOCTYPE_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GGD_TYPE_DOCTYPE_SELECTOR, GgdDoctypeSelectorClass)) +#define GGD_IS_DOCTYPE_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GGD_TYPE_DOCTYPE_SELECTOR)) +#define GGD_IS_DOCTYPE_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GGD_TYPE_DOCTYPE_SELECTOR))
typedef struct _GgdDoctypeSelector GgdDoctypeSelector;
Modified: trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.c =================================================================== --- trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.c 2011-01-13 23:38:03 UTC (rev 1843) +++ trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.c 2011-01-14 00:23:00 UTC (rev 1844) @@ -92,7 +92,7 @@ ggd_frame_init (GgdFrame *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GGD_FRAME_TYPE, + GGD_TYPE_FRAME, GgdFramePrivate);
/* set-up the frame attributes */ @@ -115,5 +115,5 @@ GtkWidget * ggd_frame_new (const gchar *label) { - return g_object_new (GGD_FRAME_TYPE, "label", label, NULL); + return g_object_new (GGD_TYPE_FRAME, "label", label, NULL); }
Modified: trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.h =================================================================== --- trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.h 2011-01-13 23:38:03 UTC (rev 1843) +++ trunk/geany-plugins/geanygendoc/src/ggd-widget-frame.h 2011-01-14 00:23:00 UTC (rev 1844) @@ -29,11 +29,11 @@ GGD_BEGIN_PLUGIN_API
-#define GGD_FRAME_TYPE (ggd_frame_get_type ()) -#define GGD_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GGD_FRAME_TYPE, GgdFrame)) -#define GGD_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GGD_FRAME_TYPE, GgdFrameClass)) -#define GGD_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GGD_FRAME_TYPE)) -#define GGD_IS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GGD_FRAME_TYPE)) +#define GGD_TYPE_FRAME (ggd_frame_get_type ()) +#define GGD_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GGD_TYPE_FRAME, GgdFrame)) +#define GGD_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GGD_TYPE_FRAME, GgdFrameClass)) +#define GGD_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GGD_TYPE_FRAME)) +#define GGD_IS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GGD_TYPE_FRAME))
typedef struct _GgdFrame GgdFrame;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.