diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-03-03 21:46:52 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-03-03 21:46:52 +0800 |
commit | 70ef20e9fb2be4516e04be00f368e68874842425 (patch) | |
tree | c408f414ffd5f21256d44c8a92641198b69eb19f | |
parent | 592f7b147ef9546ddea75d7fe71a6950180eceff (diff) | |
download | gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.gz gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.tar.zst gsoc2013-evolution-70ef20e9fb2be4516e04be00f368e68874842425.zip |
Fixes #328389
svn path=/trunk/; revision=31632
-rw-r--r-- | plugins/publish-calendar/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/publish-calendar/publish-calendar.c | 23 |
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); } |