PROP_0,
PROP_SMTP_URI,
PROP_FROM,
+ PROP_FROM_EDITABLE,
PROP_TO,
+ PROP_TO_EDITABLE,
PROP_CC,
+ PROP_CC_EDITABLE,
PROP_BCC,
+ PROP_BCC_EDITABLE,
PROP_SUBJECT,
- PROP_BODY
+ PROP_SUBJECT_EDITABLE,
+ PROP_BODY,
+ PROP_BODY_EDITABLE
};
static void solipa_mail_ui_class_init (SolipaMailUIClass *klass);
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_FROM_EDITABLE,
+ g_param_spec_boolean ("from-editable",
+ "From field editable",
+ "From field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
g_object_class_install_property (object_class, PROP_TO,
g_param_spec_string ("to",
"To",
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_TO_EDITABLE,
+ g_param_spec_boolean ("to-editable",
+ "To field editable",
+ "To field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
g_object_class_install_property (object_class, PROP_CC,
g_param_spec_string ("cc",
"Cc",
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_CC_EDITABLE,
+ g_param_spec_boolean ("cc-editable",
+ "Cc field editable",
+ "Cc field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
g_object_class_install_property (object_class, PROP_BCC,
g_param_spec_string ("bcc",
"Bcc",
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_BCC_EDITABLE,
+ g_param_spec_boolean ("bcc-editable",
+ "Bcc field editable",
+ "Bcc field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
g_object_class_install_property (object_class, PROP_SUBJECT,
g_param_spec_string ("subject",
"Subject",
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_SUBJECT_EDITABLE,
+ g_param_spec_boolean ("subject-editable",
+ "Subject field editable",
+ "Subject field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
g_object_class_install_property (object_class, PROP_BODY,
g_param_spec_string ("body",
"Body",
"",
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_BODY_EDITABLE,
+ g_param_spec_boolean ("body-editable",
+ "Body field editable",
+ "Body field editable",
+ TRUE,
+ G_PARAM_READWRITE));
+
/**
* SolipaMailUI::btn_cancel_clicked:
* @solipa_mail_ui:
gtk_entry_set_text (GTK_ENTRY (priv->from), g_strstrip (g_value_dup_string (value)));
break;
+ case PROP_FROM_EDITABLE:
+ gtk_entry_set_editable (GTK_ENTRY (priv->from), g_value_get_boolean (value));
+ break;
+
case PROP_TO:
gtk_entry_set_text (GTK_ENTRY (priv->to), g_strstrip (g_value_dup_string (value)));
break;
+ case PROP_TO_EDITABLE:
+ gtk_entry_set_editable (GTK_ENTRY (priv->to), g_value_get_boolean (value));
+ break;
+
case PROP_CC:
gtk_entry_set_text (GTK_ENTRY (priv->cc), g_strstrip (g_value_dup_string (value)));
break;
+ case PROP_CC_EDITABLE:
+ gtk_entry_set_editable (GTK_ENTRY (priv->cc), g_value_get_boolean (value));
+ break;
+
case PROP_BCC:
gtk_entry_set_text (GTK_ENTRY (priv->bcc), g_strstrip (g_value_dup_string (value)));
break;
+ case PROP_BCC_EDITABLE:
+ gtk_entry_set_editable (GTK_ENTRY (priv->bcc), g_value_get_boolean (value));
+ break;
+
case PROP_SUBJECT:
gtk_entry_set_text (GTK_ENTRY (priv->subject), g_strstrip (g_value_dup_string (value)));
break;
+ case PROP_SUBJECT_EDITABLE:
+ gtk_entry_set_editable (GTK_ENTRY (priv->subject), g_value_get_boolean (value));
+ break;
+
case PROP_BODY:
{
GtkTextBuffer *buffer;
break;
}
+ case PROP_BODY_EDITABLE:
+ gtk_text_view_set_editable (GTK_TEXT_VIEW (priv->body), g_value_get_boolean (value));
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
g_value_set_string (value, gtk_entry_get_text (GTK_ENTRY (priv->from)));
break;
+ case PROP_FROM_EDITABLE:
+ g_value_set_boolean (value, gtk_editable_get_editable (GTK_EDITABLE (priv->from)));
+ break;
+
case PROP_TO:
g_value_set_string (value, gtk_entry_get_text (GTK_ENTRY (priv->to)));
break;
+ case PROP_TO_EDITABLE:
+ g_value_set_boolean (value, gtk_editable_get_editable (GTK_EDITABLE (priv->to)));
+ break;
+
case PROP_CC:
g_value_set_string (value, gtk_entry_get_text (GTK_ENTRY (priv->cc)));
break;
+ case PROP_CC_EDITABLE:
+ g_value_set_boolean (value, gtk_editable_get_editable (GTK_EDITABLE (priv->cc)));
+ break;
+
case PROP_BCC:
g_value_set_string (value, gtk_entry_get_text (GTK_ENTRY (priv->bcc)));
break;
+ case PROP_BCC_EDITABLE:
+ g_value_set_boolean (value, gtk_editable_get_editable (GTK_EDITABLE (priv->bcc)));
+ break;
+
case PROP_SUBJECT:
g_value_set_string (value, gtk_entry_get_text (GTK_ENTRY (priv->subject)));
break;
+ case PROP_SUBJECT_EDITABLE:
+ g_value_set_boolean (value, gtk_editable_get_editable (GTK_EDITABLE (priv->subject)));
+ break;
+
case PROP_BODY:
{
GtkTextBuffer *buffer;
break;
}
+ case PROP_BODY_EDITABLE:
+ g_value_set_boolean (value, gtk_text_view_get_editable (GTK_TEXT_VIEW (priv->body)));
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;