summaryrefslogtreecommitdiffstats
path: root/src/widgets/font-selector.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-05-18 16:02:09 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-05-18 16:02:09 +0000
commit23871ac6c88506b3d38eee107e943091bf4526a2 (patch)
tree32d26d9779f66d48bd8d533f6edfe04f69ef619d /src/widgets/font-selector.cpp
parentGtk+ 3 fixes for button widget (diff)
downloadinkscape-23871ac6c88506b3d38eee107e943091bf4526a2.tar.gz
inkscape-23871ac6c88506b3d38eee107e943091bf4526a2.zip
More GtkObject fixes
(bzr r11382)
Diffstat (limited to 'src/widgets/font-selector.cpp')
-rw-r--r--src/widgets/font-selector.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp
index affc6bed9..6b860041e 100644
--- a/src/widgets/font-selector.cpp
+++ b/src/widgets/font-selector.cpp
@@ -71,7 +71,7 @@ enum {
static void sp_font_selector_class_init (SPFontSelectorClass *c);
static void sp_font_selector_init (SPFontSelector *fsel);
-static void sp_font_selector_destroy (GtkObject *object);
+static void sp_font_selector_dispose (GObject *object);
static void sp_font_selector_family_select_row (GtkTreeSelection *selection,
SPFontSelector *fsel);
@@ -119,7 +119,7 @@ GType sp_font_selector_get_type()
static void sp_font_selector_class_init(SPFontSelectorClass *c)
{
- GtkObjectClass *object_class = (GtkObjectClass *) c;
+ GObjectClass *object_class = (GObjectClass *) c;
fs_parent_class = (GtkHBoxClass* )g_type_class_peek_parent (c);
@@ -132,7 +132,7 @@ static void sp_font_selector_class_init(SPFontSelectorClass *c)
G_TYPE_NONE,
1, G_TYPE_POINTER);
- object_class->destroy = sp_font_selector_destroy;
+ object_class->dispose = sp_font_selector_dispose;
}
static void sp_font_selector_init(SPFontSelector *fsel)
@@ -253,7 +253,7 @@ This conditional and its #else block can be deleted in the future.
fsel->font = NULL;
}
-static void sp_font_selector_destroy(GtkObject *object)
+static void sp_font_selector_dispose(GObject *object)
{
SPFontSelector *fsel = SP_FONT_SELECTOR (object);
@@ -272,8 +272,8 @@ static void sp_font_selector_destroy(GtkObject *object)
fsel->styles.length = 0;
}
- if (GTK_OBJECT_CLASS(fs_parent_class)->destroy) {
- GTK_OBJECT_CLASS(fs_parent_class)->destroy(object);
+ if (G_OBJECT_CLASS(fs_parent_class)->dispose) {
+ G_OBJECT_CLASS(fs_parent_class)->dispose(object);
}
}
@@ -404,7 +404,7 @@ static void sp_font_selector_emit_set (SPFontSelector *fsel)
fsel->font->Unref();
}
fsel->font = font;
- g_signal_emit(GTK_OBJECT(fsel), fs_signals[FONT_SET], 0, fsel->font);
+ g_signal_emit(fsel, fs_signals[FONT_SET], 0, fsel->font);
}
fsel->fontsize_dirty = false;
if (font) {