summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-color-notebook.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-05-18 00:23:30 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-05-18 00:23:30 +0000
commit55c116abfcd3438af530f4c4f8114fdab89d3f69 (patch)
tree1f56eafb01d5902b867f109485fd61db9c93151d /src/widgets/sp-color-notebook.cpp
parentAdded external image edit launch and refresh on changed (diff)
downloadinkscape-55c116abfcd3438af530f4c4f8114fdab89d3f69.tar.gz
inkscape-55c116abfcd3438af530f4c4f8114fdab89d3f69.zip
Fixed warnings from deprecated function
(bzr r5686)
Diffstat (limited to 'src/widgets/sp-color-notebook.cpp')
-rw-r--r--src/widgets/sp-color-notebook.cpp33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/widgets/sp-color-notebook.cpp b/src/widgets/sp-color-notebook.cpp
index bf690e968..376cd8ee5 100644
--- a/src/widgets/sp-color-notebook.cpp
+++ b/src/widgets/sp-color-notebook.cpp
@@ -55,22 +55,25 @@ static SPColorSelectorClass *parent_class;
#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