[gnome-calendar] source-dialog: set the mode instead of the raw stack page
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: set the mode instead of the raw stack page
- Date: Mon, 25 May 2015 16:55:45 +0000 (UTC)
commit 34fb3b2bf962399625ad09733626ddd976e081f8
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]