summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorRory MacQueen <rorymacqueen@gmail.com>2013-12-05 15:29:01 -0800
committerRory MacQueen <rorymacqueen@gmail.com>2013-12-05 15:29:01 -0800
commit90520fc53e6b8caf5a2e050c1f88811612937e64 (patch)
tree0e0561d1cad503409b96aafdd6a87190498d5bcc /endless
parent60d88b79dcec7ffd9f11f4428aa19178400d7657 (diff)
parent0bd0ce3245e0f7860ec5e0794b9a45865ba69d91 (diff)
Merge pull request #381 from endlessm/issues/376
Issues/376
Diffstat (limited to 'endless')
-rw-r--r--endless/eoswindow.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/endless/eoswindow.c b/endless/eoswindow.c
index 6258d8b..d026e6b 100644
--- a/endless/eoswindow.c
+++ b/endless/eoswindow.c
@@ -66,6 +66,7 @@ struct _EosWindowPrivate
GtkWidget *top_bar;
GtkWidget *main_area;
GtkWidget *overlay;
+ GtkSizeGroup *overlay_size_group;
GtkWidget *edge_finishing;
GtkWidget *current_background;
GtkWidget *next_background;
@@ -656,6 +657,13 @@ eos_window_init (EosWindow *self)
self->priv->main_area = eos_main_area_new ();
gtk_overlay_add_overlay (GTK_OVERLAY (self->priv->overlay), self->priv->main_area);
+ // We want the overlay to size to the main area, the widget on top. The
+ // overlay gets its size request from the widget on the bottom, the
+ // background frame with no minimum size. So we use a size group.
+ self->priv->overlay_size_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
+ gtk_size_group_add_widget (self->priv->overlay_size_group, self->priv->background_stack);
+ gtk_size_group_add_widget (self->priv->overlay_size_group, self->priv->main_area);
+
self->priv->edge_finishing = gtk_drawing_area_new ();
gtk_widget_set_vexpand (self->priv->edge_finishing, FALSE);
gtk_widget_set_valign (self->priv->edge_finishing, GTK_ALIGN_START);