[gnome-builder/wip/chergert/perspective] egg: handle toplevel not being a window
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] egg: handle toplevel not being a window
- Date: Sat, 7 Nov 2015 03:16:47 +0000 (UTC)
commit 3a145a60b5f20ea76a9a693f0bdf9cdd84bf7b5c
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 6 19:16:40 2015 -0800
egg: handle toplevel not being a window
contrib/egg/egg-centering-bin.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-centering-bin.c b/contrib/egg/egg-centering-bin.c
index a65d4c8..0b7cc15 100644
--- a/contrib/egg/egg-centering-bin.c
+++ b/contrib/egg/egg-centering-bin.c
@@ -132,8 +132,11 @@ egg_centering_bin_hierarchy_changed (GtkWidget *widget,
*/
toplevel = gtk_widget_get_toplevel (widget);
- if ((toplevel == NULL) || GTK_IS_WINDOW (toplevel))
+
+ if (GTK_IS_WINDOW (toplevel))
egg_signal_group_set_target (priv->signals, toplevel);
+ else
+ egg_signal_group_set_target (priv->signals, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]