[gnome-calendar/calendar-editor] source-dialog: set the mode instead of the raw stack page
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-dialog: set the mode instead of the raw stack page
- Date: Wed, 8 Apr 2015 19:47:38 +0000 (UTC)
commit 2bc9653979219d3e7bb6ea922ab02af57a00ff10
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Apr 8 16:47:10 2015 -0300
source-dialog: set the mode instead of the raw stack page
src/gcal-source-dialog.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index bcea9de..5f5d799 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -236,8 +236,7 @@ back_button_clicked (GtkButton *button,
g_object_unref (priv->source);
priv->source = NULL;
- gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "main");
- gtk_widget_hide (GTK_WIDGET (button));
+ gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (user_data), GCAL_SOURCE_DIALOG_MODE_NORMAL);
}
}
@@ -634,7 +633,7 @@ calendar_listbox_row_activated (GtkListBox *box,
ESource *source = g_object_get_data (G_OBJECT (row), "source");
gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (user_data), source);
- gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "edit");
+ gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (user_data), GCAL_SOURCE_DIALOG_MODE_EDIT);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]