mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Don't draw the handle if we aren't showing both children. (#68135, Diego
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)
This commit is contained in:
parent
17fef0f841
commit
74e8826793
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user