aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-28 01:38:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-28 01:39:22 +0800
commitef1ae6a0be5b2c8d0d70719445814a9e3a3b291b (patch)
tree9dbcb309980e4118e14ec156f9a9d1717b90704e /mail
parent68d14bad146a56b23aeab9ca2d6a7405a3830b63 (diff)
downloadgsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar.gz
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar.bz2
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar.lz
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar.xz
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.tar.zst
gsoc2013-evolution-ef1ae6a0be5b2c8d0d70719445814a9e3a3b291b.zip
Bug 682811 - Can edit properties of local/vfolder stores
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-account-manager.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/mail/e-mail-account-manager.c b/mail/e-mail-account-manager.c
index 9fa71ecbf9..17815202d7 100644
--- a/mail/e-mail-account-manager.c
+++ b/mail/e-mail-account-manager.c
@@ -162,6 +162,20 @@ mail_account_manager_default_cb (EMailAccountManager *manager)
}
static void
+mail_account_manager_row_activated_cb (GtkTreeView *tree_view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ EMailAccountManager *manager)
+{
+ GtkWidget *edit_button;
+
+ edit_button = manager->priv->edit_button;
+
+ if (gtk_widget_is_sensitive (edit_button))
+ gtk_button_clicked (GTK_BUTTON (edit_button));
+}
+
+static void
mail_account_manager_info_bar_response_cb (EMailAccountManager *manager,
gint response)
{
@@ -415,9 +429,9 @@ mail_account_manager_constructed (GObject *object)
G_CALLBACK (mail_account_manager_key_press_event_cb),
manager);
- g_signal_connect_swapped (
+ g_signal_connect (
widget, "row-activated",
- G_CALLBACK (mail_account_manager_edit_cb), manager);
+ G_CALLBACK (mail_account_manager_row_activated_cb), manager);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));