[gnome-calendar/calendar-editor] window: correctly set the source and mode

commit 842ec9776724a373a489d23588c117fb7417741f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Apr 8 16:46:20 2015 -0300

    window: correctly set the source and mode
    Cannot change to edit mode without actually
    give the source to edit.

 src/gcal-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gcal-window.c b/src/gcal-window.c
index e3810fe..e5e73f5 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -882,8 +882,8 @@ source_row_activated (GtkListBox    *listbox,
   if (source == NULL)
-  gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT);
   gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (priv->source_dialog), source);
+  gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT);
   gtk_widget_hide (priv->calendar_popover);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]