summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c13deb2)
raw | patch | inline | side by side (parent: c13deb2)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 18 May 2008 00:23:30 +0000 (00:23 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 18 May 2008 00:23:30 +0000 (00:23 +0000) |
index bf690e968b5dfc4778f5f44624703173ed3f9c7e..376cd8ee55f07b3a2ede37ca64de40b5f105a7b1 100644 (file)
#define XPAD 4
#define YPAD 1
-GtkType
-sp_color_notebook_get_type (void)
+GType sp_color_notebook_get_type(void)
{
- static GtkType type = 0;
- if (!type) {
- GtkTypeInfo info = {
- "SPColorNotebook",
- sizeof (SPColorNotebook),
- sizeof (SPColorNotebookClass),
- (GtkClassInitFunc) sp_color_notebook_class_init,
- (GtkObjectInitFunc) sp_color_notebook_init,
- NULL, NULL, NULL
- };
- type = gtk_type_unique (SP_TYPE_COLOR_SELECTOR, &info);
- }
- return type;
+ static GtkType type = 0;
+ if (!type) {
+ GTypeInfo info = {
+ sizeof(SPColorNotebookClass),
+ 0, // base_init
+ 0, // base_finalize
+ (GClassInitFunc)sp_color_notebook_class_init,
+ 0, // class_finalize
+ 0, // class_data
+ sizeof(SPColorNotebook),
+ 0, // n_preallocs
+ (GInstanceInitFunc)sp_color_notebook_init,
+ 0 // value_table
+ };
+ type = g_type_register_static(SP_TYPE_COLOR_SELECTOR, "SPColorNotebook", &info, static_cast<GTypeFlags>(0));
+ }
+ return type;
}
static void
index 4acd7ecd4879323b374cf0947a30f56dd94357eb..bf6fb1002edd28152a32cd32b18a8b5ed56b5b6d 100644 (file)
void (* changed) (SPColorNotebook *rgbsel);
};
-GtkType sp_color_notebook_get_type (void);
+GType sp_color_notebook_get_type(void);
GtkWidget *sp_color_notebook_new (void);
index 7cfa991b0993bd74f77715b748c26b1c148dfb5f..a318571016ce12c4f9d7e8976c90af46ed12b1a0 100644 (file)
}
*/
-GtkType
-sp_color_wheel_get_type (void)
+GType sp_color_wheel_get_type(void)
{
- static GtkType type = 0;
+ static GType type = 0;
if (!type) {
- GtkTypeInfo info = {
- "SPColorWheel",
- sizeof (SPColorWheel),
- sizeof (SPColorWheelClass),
- (GtkClassInitFunc) sp_color_wheel_class_init,
- (GtkObjectInitFunc) sp_color_wheel_init,
- NULL, NULL, NULL
+ GTypeInfo info = {
+ sizeof(SPColorWheelClass),
+ 0, // base_init
+ 0, // base_finalize
+ (GClassInitFunc)sp_color_wheel_class_init,
+ 0, // class_finalize
+ 0, // class_data
+ sizeof(SPColorWheel),
+ 0, // n_preallocs
+ (GInstanceInitFunc)sp_color_wheel_init,
+ 0 // value_table
};
- type = gtk_type_unique (GTK_TYPE_WIDGET, &info);
+ type = g_type_register_static(GTK_TYPE_WIDGET, "SPColorWheel", &info, static_cast<GTypeFlags>(0));
}
return type;
}
index d8fceb9085f23f0df44d63cf118167daf7ce045a..699750bed62d40d0f3c5d0832fa337657dc78f97 100644 (file)
void (* changed) (SPColorWheel *wheel);
};
-GtkType sp_color_wheel_get_type (void);
+GType sp_color_wheel_get_type(void);
GtkWidget *sp_color_wheel_new ();