aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar/url-editor-dialog.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-09 18:52:31 +0800
committerMilan Crha <mcrha@redhat.com>2011-03-09 18:52:31 +0800
commit9a1d03400b5f3d035178a311607c53f56b237265 (patch)
tree79aa608447de65b07fe6442a63bf2b884d0cb0fd /plugins/publish-calendar/url-editor-dialog.c
parentcc4dd64854e652e4f6c8552069977088c87268bb (diff)
downloadgsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar.gz
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar.bz2
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar.lz
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar.xz
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.tar.zst
gsoc2013-evolution-9a1d03400b5f3d035178a311607c53f56b237265.zip
Bug #641939 - [publish-calendar] Doesn't read online state on start
Diffstat (limited to 'plugins/publish-calendar/url-editor-dialog.c')
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c
index 4af662def4..9c49dcb104 100644
--- a/plugins/publish-calendar/url-editor-dialog.c
+++ b/plugins/publish-calendar/url-editor-dialog.c
@@ -209,7 +209,8 @@ publish_service_changed (GtkComboBox *combo, UrlEditorDialog *dialog)
break;
case TYPE_URI:
gtk_label_set_text_with_mnemonic (GTK_LABEL (dialog->server_label), "_Location (URI):");
- gtk_entry_set_text (GTK_ENTRY (dialog->server_entry), "");
+ if (uri->service_type != TYPE_URI)
+ gtk_entry_set_text (GTK_ENTRY (dialog->server_entry), "");
gtk_widget_hide (dialog->file_hbox);
gtk_widget_hide (dialog->optional_label);
gtk_widget_hide (dialog->port_hbox);
@@ -319,6 +320,9 @@ set_from_uri (UrlEditorDialog *dialog)
if (euri->path)
gtk_entry_set_text (GTK_ENTRY (dialog->file_entry), euri->path);
+ if (uri->service_type == TYPE_URI)
+ gtk_entry_set_text (GTK_ENTRY (dialog->server_entry), uri->location);
+
gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->publish_service), uri->service_type);
e_uri_free (euri);
@@ -426,6 +430,7 @@ url_editor_dialog_construct (UrlEditorDialog *dialog)
if (uri->location && strlen (uri->location)) {
set_from_uri (dialog);
}
+
gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->publish_frequency), uri->publish_frequency);
gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->type_selector), uri->publish_format);
@@ -443,6 +448,10 @@ url_editor_dialog_construct (UrlEditorDialog *dialog)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (dialog->fb_duration_spin), uri->fb_duration_value);
gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->fb_duration_combo), uri->fb_duration_type);
+ type_selector_changed (GTK_COMBO_BOX (dialog->type_selector), dialog);
+ frequency_changed_cb (GTK_COMBO_BOX (dialog->publish_frequency), dialog);
+ publish_service_changed (GTK_COMBO_BOX (dialog->publish_service), dialog);
+
g_signal_connect (G_OBJECT (dialog->publish_service), "changed", G_CALLBACK (publish_service_changed), dialog);
g_signal_connect (G_OBJECT (dialog->type_selector), "changed", G_CALLBACK (type_selector_changed), dialog);
g_signal_connect (G_OBJECT (dialog->publish_frequency), "changed", G_CALLBACK (frequency_changed_cb), dialog);