diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-08-03 05:08:35 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-08-03 05:08:35 +0000 |
| commit | 9e06b09897a78b23cd663f9f0fdaa41673215c91 (patch) | |
| tree | edaaf2c970a671a6f639b5b6917fcd6875dd349b /src/display/sp-ctrlline.cpp | |
| parent | remove many needless references to n-art-bpath.h (diff) | |
| download | inkscape-9e06b09897a78b23cd663f9f0fdaa41673215c91.tar.gz inkscape-9e06b09897a78b23cd663f9f0fdaa41673215c91.zip | |
Replaced deprecated GtkType creation with GType
(bzr r6541)
Diffstat (limited to 'src/display/sp-ctrlline.cpp')
| -rw-r--r-- | src/display/sp-ctrlline.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/display/sp-ctrlline.cpp b/src/display/sp-ctrlline.cpp index 95dd98f11..8f71a0cc0 100644 --- a/src/display/sp-ctrlline.cpp +++ b/src/display/sp-ctrlline.cpp @@ -39,21 +39,22 @@ static void sp_ctrlline_render (SPCanvasItem *item, SPCanvasBuf *buf); static SPCanvasItemClass *parent_class; -GtkType +GType sp_ctrlline_get_type (void) { - static GtkType type = 0; - + static GType type = 0; if (!type) { - GtkTypeInfo info = { - "SPCtrlLine", - sizeof (SPCtrlLine), - sizeof (SPCtrlLineClass), - (GtkClassInitFunc) sp_ctrlline_class_init, - (GtkObjectInitFunc) sp_ctrlline_init, - NULL, NULL, NULL + GTypeInfo info = { + sizeof(SPCtrlLineClass), + NULL, NULL, + (GClassInitFunc) sp_ctrlline_class_init, + NULL, NULL, + sizeof(SPCtrlLine), + 0, + (GInstanceInitFunc) sp_ctrlline_init, + NULL }; - type = gtk_type_unique (SP_TYPE_CANVAS_ITEM, &info); + type = g_type_register_static(SP_TYPE_CANVAS_ITEM, "SPCtrlLine", &info, (GTypeFlags)0); } return type; } |
