summaryrefslogtreecommitdiff
path: root/src/plugins/screenshot/totem-gallery-progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/screenshot/totem-gallery-progress.c')
-rw-r--r--src/plugins/screenshot/totem-gallery-progress.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/screenshot/totem-gallery-progress.c b/src/plugins/screenshot/totem-gallery-progress.c
index 818f02326..a57fa83e2 100644
--- a/src/plugins/screenshot/totem-gallery-progress.c
+++ b/src/plugins/screenshot/totem-gallery-progress.c
@@ -48,29 +48,26 @@ struct _TotemGalleryProgressPrivate {
GtkProgressBar *progress_bar;
};
-G_DEFINE_TYPE (TotemGalleryProgress, totem_gallery_progress, GTK_TYPE_DIALOG)
-#define TOTEM_GALLERY_PROGRESS_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TOTEM_TYPE_GALLERY_PROGRESS, TotemGalleryProgressPrivate))
+G_DEFINE_TYPE_WITH_PRIVATE (TotemGalleryProgress, totem_gallery_progress, GTK_TYPE_DIALOG)
static void
totem_gallery_progress_class_init (TotemGalleryProgressClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (TotemGalleryProgressPrivate));
-
gobject_class->finalize = totem_gallery_progress_finalize;
}
static void
totem_gallery_progress_init (TotemGalleryProgress *self)
{
- self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, TOTEM_TYPE_GALLERY_PROGRESS, TotemGalleryProgressPrivate);
+ self->priv = totem_gallery_progress_get_instance_private (self);
}
static void
totem_gallery_progress_finalize (GObject *object)
{
- TotemGalleryProgressPrivate *priv = TOTEM_GALLERY_PROGRESS_GET_PRIVATE (object);
+ TotemGalleryProgressPrivate *priv = TOTEM_GALLERY_PROGRESS (object)->priv;
g_spawn_close_pid (priv->child_pid);
g_free (priv->output_filename);