diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-05-06 07:33:22 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-05-06 07:33:22 +0000 |
| commit | 08c28c4e7fe814f39e742fd8cd617b42daa1534e (patch) | |
| tree | 5aa758fb93a0475c27658dd4ded72c9cf7064acf /src/helper/unit-menu.cpp | |
| parent | limit the change to the relative moves only (diff) | |
| download | inkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.tar.gz inkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.zip | |
Updating deprecated type calls.
(bzr r5617)
Diffstat (limited to 'src/helper/unit-menu.cpp')
| -rw-r--r-- | src/helper/unit-menu.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/helper/unit-menu.cpp b/src/helper/unit-menu.cpp index 34a2b6344..809d8f929 100644 --- a/src/helper/unit-menu.cpp +++ b/src/helper/unit-menu.cpp @@ -58,20 +58,23 @@ static void sp_unit_selector_finalize(GObject *object); static GtkHBoxClass *unit_selector_parent_class; static guint signals[LAST_SIGNAL] = {0}; -GtkType -sp_unit_selector_get_type(void) +GType sp_unit_selector_get_type(void) { - static GtkType type = 0; + static GType type = 0; if (!type) { - static GtkTypeInfo const info = { - "SPUnitSelector", - sizeof(SPUnitSelector), + GTypeInfo info = { sizeof(SPUnitSelectorClass), - (GtkClassInitFunc) sp_unit_selector_class_init, - (GtkObjectInitFunc) sp_unit_selector_init, - NULL, NULL, NULL + 0, // base_init + 0, // base_finalize + (GClassInitFunc)sp_unit_selector_class_init, + 0, // class_finalize + 0, // class_data + sizeof(SPUnitSelector), + 0, // n_preallocs + (GInstanceInitFunc)sp_unit_selector_init, + 0 // value_table }; - type = gtk_type_unique(GTK_TYPE_HBOX, &info); + type = g_type_register_static(GTK_TYPE_HBOX, "SPUnitSelector", &info, static_cast<GTypeFlags>(0)); } return type; } |
