static void attachment_button_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_ATTACHMENT: e_attachment_button_set_attachment ( E_ATTACHMENT_BUTTON (object), g_value_get_object (value)); return; case PROP_EXPANDABLE: e_attachment_button_set_expandable ( E_ATTACHMENT_BUTTON (object), g_value_get_boolean (value)); return; case PROP_EXPANDED: e_attachment_button_set_expanded ( E_ATTACHMENT_BUTTON (object), g_value_get_boolean (value)); return; case PROP_VIEW: e_attachment_button_set_view ( E_ATTACHMENT_BUTTON (object), g_value_get_object (value)); return; } G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); }
static void attachment_button_expand_clicked_cb (EAttachmentButton *button) { gboolean expanded; expanded = e_attachment_button_get_expanded (button); e_attachment_button_set_expanded (button, !expanded); }