aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-03-03 21:46:52 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-03-03 21:46:52 +0800
commit70ef20e9fb2be4516e04be00f368e68874842425 (patch)
treec408f414ffd5f21256d44c8a92641198b69eb19f /plugins/publish-calendar
parent592f7b147ef9546ddea75d7fe71a6950180eceff (diff)
downloadgsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.gz
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.bz2
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.lz
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.xz
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.zst
gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.zip
Fixes #328389
svn path=/trunk/; revision=31632
Diffstat (limited to 'plugins/publish-calendar')
-rw-r--r--plugins/publish-calendar/ChangeLog5
-rw-r--r--plugins/publish-calendar/publish-calendar.c23
2 files changed, 26 insertions, 2 deletions
diff --git a/plugins/publish-calendar/ChangeLog b/plugins/publish-calendar/ChangeLog
index 5c65952714..a61c729da6 100644
--- a/plugins/publish-calendar/ChangeLog
+++ b/plugins/publish-calendar/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-09 Rajeev ramanathan <rajeevramanathan_2004@yahoo.co.in>
+
+ Fixes #328389
+ * publish-calendar.c: Disabled Enabled button for Enabled Url.
+
2006-02-12 Karsten Bräckelmann <guenther@rudersport.de>
* publish-calendar.glade: Change mnemonic for Port.
diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c
index 9ca1713ea2..a3cf262547 100644
--- a/plugins/publish-calendar/publish-calendar.c
+++ b/plugins/publish-calendar/publish-calendar.c
@@ -273,6 +273,12 @@ url_list_enable_toggled (GtkCellRendererToggle *renderer,
gtk_tree_model_get (model, &iter, URL_LIST_URL_COLUMN, &url, -1);
url->enabled = !url->enabled;
+
+ if(url->enabled)
+ gtk_widget_set_sensitive (ui->url_enable, FALSE);
+ else
+ gtk_widget_set_sensitive (ui->url_enable, TRUE);
+
gtk_list_store_set (GTK_LIST_STORE (model), &iter, URL_LIST_ENABLED_COLUMN, url->enabled, -1);
}
@@ -284,11 +290,18 @@ selection_changed (GtkTreeSelection *selection, PublishUIData *ui)
{
GtkTreeModel *model;
GtkTreeIter iter;
+ EPublishUri *url = NULL;
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
+ gtk_tree_model_get (model, &iter, URL_LIST_URL_COLUMN, &url, -1);
gtk_widget_set_sensitive (ui->url_edit, TRUE);
gtk_widget_set_sensitive (ui->url_remove, TRUE);
- gtk_widget_set_sensitive (ui->url_enable, TRUE);
+
+ if(url->enabled)
+ gtk_widget_set_sensitive (ui->url_enable, FALSE);
+ else
+ gtk_widget_set_sensitive (ui->url_enable, TRUE);
+
} else {
gtk_widget_set_sensitive (ui->url_edit, FALSE);
gtk_widget_set_sensitive (ui->url_remove, FALSE);
@@ -427,7 +440,13 @@ url_enable_clicked (GtkButton *button, PublishUIData *ui)
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
gtk_tree_model_get (model, &iter, URL_LIST_URL_COLUMN, &url, -1);
url->enabled = !url->enabled;
- gtk_list_store_set (GTK_LIST_STORE (model), &iter, URL_LIST_URL_COLUMN, url->enabled, -1);
+
+ if(url->enabled)
+ gtk_widget_set_sensitive (ui->url_enable, FALSE);
+ else
+ gtk_widget_set_sensitive (ui->url_enable, TRUE);
+
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter, URL_LIST_ENABLED_COLUMN, url->enabled, -1);
gtk_tree_selection_select_iter (selection, &iter);
url_list_changed (ui);
}