]> Pileus Git - ~andy/gtk/commitdiff
Don't draw the handle if we aren't showing both children. (#68135, Diego
authorOwen Taylor <otaylor@redhat.com>
Tue, 8 Jan 2002 19:56:37 +0000 (19:56 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 8 Jan 2002 19:56:37 +0000 (19:56 +0000)
Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkpaned.c (gtk_paned_expose): Don't draw
the handle if we aren't showing both children.
(#68135, Diego Gonzalez)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkpaned.c

index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 9311855e752c93950fe13efb018bb5992d0b714c..b8c63e0f18ab6c66794570ca6afc7c90657f6535 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
+       the handle if we aren't showing both children.
+
 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_add_events): Fix
index 71be0ca818d508daf096172e2ff1f6ef87908a45..a4b3bc7b9c2674d91fbea8f8c34a06f12248b39e 100644 (file)
@@ -310,16 +310,16 @@ static gint
 gtk_paned_expose (GtkWidget      *widget,
                  GdkEventExpose *event)
 {
-  GtkPaned *paned;
+  GtkPaned *paned = GTK_PANED (widget);
 
   g_return_val_if_fail (GTK_IS_PANED (widget), FALSE);
 
-  if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget))
+  if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget) &&
+      paned->child1 && GTK_WIDGET_VISIBLE (paned->child1) &&
+      paned->child2 && GTK_WIDGET_VISIBLE (paned->child2))
     {
       GdkRegion *region;
 
-      paned = GTK_PANED (widget);
-      
       region = gdk_region_rectangle (&paned->handle_pos);
       gdk_region_intersect (region, event->region);