Exemplo n.º 1
0
static void budgie_media_label_dispose(GObject *object)
{
        BudgieMediaLabel *self;

        self = BUDGIE_MEDIA_LABEL(object);
        if (self->info) {
                free_media_info(self->info);
                self->info = NULL;
        }
        /* Destruct */
        G_OBJECT_CLASS (budgie_media_label_parent_class)->dispose (object);
}
Exemplo n.º 2
0
static void budgie_media_label_dispose(GObject *object)
{
        BudgieMediaLabel *self;

        self = BUDGIE_MEDIA_LABEL(object);
        if (self->info) {
                free_media_info(self->info);
                /* GtkListBox actually revisits us twice sometimes.. */
                self->info = NULL;
        }
        /* Destruct */
        G_OBJECT_CLASS (budgie_media_label_parent_class)->dispose (object);
}
Exemplo n.º 3
0
static void budgie_media_label_get_property(GObject *object,
                                           guint prop_id,
                                           GValue *value,
                                           GParamSpec *pspec)
{
        BudgieMediaLabel *self;

        self = BUDGIE_MEDIA_LABEL(object);
        switch (prop_id) {
                case PROP_INFO:
                        g_value_set_pointer((GValue *)value, self->info);
                        break;
                case PROP_PLAYING:
                        g_value_set_boolean((GValue *)value, self->playing);
                        break;
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
                                prop_id, pspec);
                        break;
        }
}