[glade] Fixed Drag/Resize for GtkFixed by explicitly giving it a window.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Fixed Drag/Resize for GtkFixed by explicitly giving it a window.
- Date: Wed, 3 Apr 2013 07:15:07 +0000 (UTC)
commit 3d66650794360461a076df9315b0bbf25444221f
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Apr 3 16:11:09 2013 +0900
Fixed Drag/Resize for GtkFixed by explicitly giving it a window.
Current Drag/Resize was only working in GtkLayout since the layout
defines it's own GdkWindow, just force GtkFixed to have a window too.
plugins/gtk+/glade-gtk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 7fd6757..5c86399 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -3782,6 +3782,8 @@ glade_gtk_fixed_layout_post_create (GladeWidgetAdaptor * adaptor,
{
/* Set a minimun size so you can actually see it if you added to a box */
gtk_widget_set_size_request (GTK_WIDGET (object), 32, 32);
+
+ gtk_widget_set_has_window (GTK_WIDGET (object), TRUE);
/* Sync up size request at project load time */
if (reason == GLADE_CREATE_LOAD)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]