-G_DEFINE_TYPE (ModestConnectionSpecificSmtpWindow, modest_connection_specific_smtp_window, GTK_TYPE_WINDOW);
+G_DEFINE_TYPE (ModestConnectionSpecificSmtpWindow, modest_connection_specific_smtp_window,
+ GTK_TYPE_DIALOG);
#define CONNECTION_SPECIFIC_SMTP_WINDOW_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), MODEST_TYPE_CONNECTION_SPECIFIC_SMTP_WINDOW, ModestConnectionSpecificSmtpWindowPrivate))
#define CONNECTION_SPECIFIC_SMTP_WINDOW_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), MODEST_TYPE_CONNECTION_SPECIFIC_SMTP_WINDOW, ModestConnectionSpecificSmtpWindowPrivate))
g_signal_connect (G_OBJECT (button_cancel), "clicked",
G_CALLBACK (on_button_cancel), self);
g_signal_connect (G_OBJECT (button_cancel), "clicked",
G_CALLBACK (on_button_cancel), self);
g_signal_connect (G_OBJECT (self),
"key-press-event",
G_CALLBACK (on_key_pressed), NULL);
g_signal_connect (G_OBJECT (self),
"key-press-event",
G_CALLBACK (on_key_pressed), NULL);
ModestServerAccountData *data = NULL;
gtk_tree_model_get (priv->model, &iter,
MODEL_COL_ID, &id,
MODEL_COL_NAME, &connection_name,
ModestServerAccountData *data = NULL;
gtk_tree_model_get (priv->model, &iter,
MODEL_COL_ID, &id,
MODEL_COL_NAME, &connection_name,
MODEL_COL_SERVER_ACCOUNT_NAME, &server_account_name,
MODEL_COL_SERVER_ACCOUNT_DATA, &data,
-1);
MODEL_COL_SERVER_ACCOUNT_NAME, &server_account_name,
MODEL_COL_SERVER_ACCOUNT_DATA, &data,
-1);
/* associate the specific server account with this connection for this account: */
success = success && modest_account_mgr_set_connection_specific_smtp (
/* associate the specific server account with this connection for this account: */
success = success && modest_account_mgr_set_connection_specific_smtp (
modest_account_mgr_set_server_account_port (priv->account_manager, server_account_name, data->port);
}
modest_account_mgr_set_server_account_port (priv->account_manager, server_account_name, data->port);
}
modest_account_mgr_remove_connection_specific_smtp (priv->account_manager,
connection_name);
gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter,
modest_account_mgr_remove_connection_specific_smtp (priv->account_manager,
connection_name);
gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter,