[gnome-calendar] gcal-window: reposition notification widget
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] gcal-window: reposition notification widget
- Date: Thu, 4 Dec 2014 22:24:34 +0000 (UTC)
commit aabf2263445207dc6114243760f909302daabae2
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed Jun 19 08:28:28 2013 -0400
gcal-window: reposition notification widget
Setting the overlay to cover the NavBar widget as well, so the notifications
show up, below the toolbars
src/gcal-window.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index aba230a..beebec3 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -300,14 +300,19 @@ gcal_window_constructed (GObject *object)
gtk_container_add (GTK_CONTAINER (priv->search_bar), box);
gtk_container_add (GTK_CONTAINER (priv->main_box), priv->search_bar);
- /* nav_bar */
- priv->nav_bar = gcal_nav_bar_new ();
- gtk_container_add (GTK_CONTAINER (priv->main_box), priv->nav_bar);
-
/* overlay */
priv->views_overlay = gtk_overlay_new ();
gtk_container_add (GTK_CONTAINER (priv->main_box), priv->views_overlay);
+ box = gtk_grid_new ();
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (box),
+ GTK_ORIENTATION_VERTICAL);
+ gtk_container_add (GTK_CONTAINER (priv->views_overlay), box);
+
+ /* nav_bar */
+ priv->nav_bar = gcal_nav_bar_new ();
+ gtk_container_add (GTK_CONTAINER (box), priv->nav_bar);
+
/* stack widget for holding views */
priv->views_stack = gtk_stack_new ();
g_object_set (priv->views_stack,
@@ -316,7 +321,7 @@ gcal_window_constructed (GObject *object)
"transition-type", GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT,
"transition-duration", 500,
NULL);
- gtk_container_add (GTK_CONTAINER (priv->views_overlay), priv->views_stack);
+ gtk_container_add (GTK_CONTAINER (box), priv->views_stack);
gtk_style_context_add_class (
gtk_widget_get_style_context (priv->views_stack),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]