[glade/glade-3-22] GladeGtkWindow: fix regression in get_children() method
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-22] GladeGtkWindow: fix regression in get_children() method
- Date: Sat, 24 Mar 2018 16:28:28 +0000 (UTC)
commit 1f7c3e2e594df461117f1c1e136b9923789654d4
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Sat Mar 24 13:22:48 2018 -0300
GladeGtkWindow: fix regression in get_children() method
Allways return titlebar even if use-csd is not set
plugins/gtk+/glade-gtk-window.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-window.c b/plugins/gtk+/glade-gtk-window.c
index 6ea3916..ceb8440 100644
--- a/plugins/gtk+/glade-gtk-window.c
+++ b/plugins/gtk+/glade-gtk-window.c
@@ -369,17 +369,14 @@ glade_gtk_window_remove_child (GladeWidgetAdaptor * adaptor,
GList *
glade_gtk_window_get_children (GladeWidgetAdaptor *adaptor, GObject *container)
{
- GladeWidget *gwidget = glade_widget_get_from_gobject (container);
GtkWidget *child = gtk_bin_get_child (GTK_BIN (container));
GtkWidget *titlebar = gtk_window_get_titlebar (GTK_WINDOW (container));
GList *children = NULL;
- gboolean use_csd;
if (child)
children = g_list_prepend (children, child);
- if (glade_widget_property_get (gwidget, "use-csd", &use_csd) &&
- use_csd && titlebar)
+ if (titlebar)
children = g_list_prepend (children, titlebar);
return children;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]