[gtk+] GtkPaned: Create the child window at the correct position
- From: Chris Coulson <ccoulson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPaned: Create the child window at the correct position
- Date: Mon, 19 Sep 2011 11:35:54 +0000 (UTC)
commit 22cd009ef7ae24011aa3c8414c44361133c93d2c
Author: Chris Coulson <chris coulson canonical com>
Date: Mon Sep 19 12:28:59 2011 +0100
GtkPaned: Create the child window at the correct position
When there is only a single child, create its window at the correct position
https://bugzilla.gnome.org/show_bug.cgi?id=659241
gtk/gtkpaned.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index e2e761f..78974be 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1291,12 +1291,14 @@ gtk_paned_create_child_window (GtkPaned *paned,
gtk_widget_get_allocation (widget, &allocation);
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL &&
- child == priv->child2)
+ child == priv->child2 && priv->child1 &&
+ gtk_widget_get_visible (priv->child1))
attributes.x = priv->handle_pos.x + handle_size;
else
attributes.x = allocation.x;
if (priv->orientation == GTK_ORIENTATION_VERTICAL &&
- child == priv->child2)
+ child == priv->child2 && priv->child1 &&
+ gtk_widget_get_visible (priv->child1))
attributes.y = priv->handle_pos.y + handle_size;
else
attributes.y = allocation.y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]