diff options
author | Wu Xiaotian <[email protected]> | 2019-05-03 12:04:00 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-06 20:45:45 +0200 |
commit | f71171331d5ea659cfcdd9185b01802f88f0c6ed (patch) | |
tree | d75981f16542e662802e57459d1a0074543ad1fe /src/eggfileformatchooser.c | |
parent | 2daba514d214acab565834195ee6700420d30357 (diff) | |
download | engrampa-f71171331d5ea659cfcdd9185b01802f88f0c6ed.tar.bz2 engrampa-f71171331d5ea659cfcdd9185b01802f88f0c6ed.tar.xz |
Avoid deprecated g_type_class_add_private
Diffstat (limited to 'src/eggfileformatchooser.c')
-rw-r--r-- | src/eggfileformatchooser.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/eggfileformatchooser.c b/src/eggfileformatchooser.c index c3e5b1d..f297917 100644 --- a/src/eggfileformatchooser.c +++ b/src/eggfileformatchooser.c @@ -76,9 +76,9 @@ struct _EggFileFormatSearch static guint signals[SIGNAL_LAST] = { 0 }; -G_DEFINE_TYPE (EggFileFormatChooser, - egg_file_format_chooser, - GTK_TYPE_EXPANDER); +G_DEFINE_TYPE_WITH_PRIVATE (EggFileFormatChooser, + egg_file_format_chooser, + GTK_TYPE_EXPANDER); static EGG_DEFINE_QUARK (EggFileFormatFilterInfo, egg_file_format_filter_info); @@ -386,8 +386,7 @@ egg_file_format_chooser_init (EggFileFormatChooser *self) GtkCellRenderer *cell; GtkTreeIter iter; - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, EGG_TYPE_FILE_FORMAT_CHOOSER, - EggFileFormatChooserPrivate); + self->priv = egg_file_format_chooser_get_instance_private(self); self->priv->size_changed_event = 0; @@ -791,8 +790,6 @@ egg_file_format_chooser_class_init (EggFileFormatChooserClass *cls) GObjectClass *object_class = G_OBJECT_CLASS (cls); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (cls); - g_type_class_add_private (cls, sizeof (EggFileFormatChooserPrivate)); - object_class->dispose = egg_file_format_chooser_dispose; object_class->finalize = egg_file_format_chooser_finalize; |