mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Also reserve space for the resize grip if the grip_window is not realized
2004-11-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also reserve space for the resize grip if the grip_window is not realized yet. (#158010, Christian Persch) (gtk_statusbar_button_press): Only start a resize if the button press comes from the grip_window. (#158011, Christian Persch)
This commit is contained in:
parent
430a02d854
commit
73b0f2bc45
@ -1,3 +1,11 @@
|
|||||||
|
2004-11-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
|
||||||
|
reserve space for the resize grip if the grip_window is not
|
||||||
|
realized yet. (#158010, Christian Persch)
|
||||||
|
(gtk_statusbar_button_press): Only start a resize if the
|
||||||
|
button press comes from the grip_window. (#158011, Christian Persch)
|
||||||
|
|
||||||
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
Fix for #137551, by Robert Ögren:
|
Fix for #137551, by Robert Ögren:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-11-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
|
||||||
|
reserve space for the resize grip if the grip_window is not
|
||||||
|
realized yet. (#158010, Christian Persch)
|
||||||
|
(gtk_statusbar_button_press): Only start a resize if the
|
||||||
|
button press comes from the grip_window. (#158011, Christian Persch)
|
||||||
|
|
||||||
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
Fix for #137551, by Robert Ögren:
|
Fix for #137551, by Robert Ögren:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-11-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
|
||||||
|
reserve space for the resize grip if the grip_window is not
|
||||||
|
realized yet. (#158010, Christian Persch)
|
||||||
|
(gtk_statusbar_button_press): Only start a resize if the
|
||||||
|
button press comes from the grip_window. (#158011, Christian Persch)
|
||||||
|
|
||||||
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
Fix for #137551, by Robert Ögren:
|
Fix for #137551, by Robert Ögren:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2004-11-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
|
||||||
|
reserve space for the resize grip if the grip_window is not
|
||||||
|
realized yet. (#158010, Christian Persch)
|
||||||
|
(gtk_statusbar_button_press): Only start a resize if the
|
||||||
|
button press comes from the grip_window. (#158011, Christian Persch)
|
||||||
|
|
||||||
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
2004-11-11 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
Fix for #137551, by Robert Ögren:
|
Fix for #137551, by Robert Ögren:
|
||||||
|
@ -684,7 +684,8 @@ gtk_statusbar_button_press (GtkWidget *widget,
|
|||||||
statusbar = GTK_STATUSBAR (widget);
|
statusbar = GTK_STATUSBAR (widget);
|
||||||
|
|
||||||
if (!statusbar->has_resize_grip ||
|
if (!statusbar->has_resize_grip ||
|
||||||
event->type != GDK_BUTTON_PRESS)
|
event->type != GDK_BUTTON_PRESS ||
|
||||||
|
event->window != statusbar->grip_window)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
ancestor = gtk_widget_get_toplevel (widget);
|
ancestor = gtk_widget_get_toplevel (widget);
|
||||||
@ -803,7 +804,7 @@ gtk_statusbar_size_allocate (GtkWidget *widget,
|
|||||||
gboolean extra_children;
|
gboolean extra_children;
|
||||||
GdkRectangle rect, overlap;
|
GdkRectangle rect, overlap;
|
||||||
|
|
||||||
if (statusbar->has_resize_grip && statusbar->grip_window)
|
if (statusbar->has_resize_grip)
|
||||||
{
|
{
|
||||||
widget->allocation = *allocation;
|
widget->allocation = *allocation;
|
||||||
get_grip_rect (statusbar, &rect);
|
get_grip_rect (statusbar, &rect);
|
||||||
@ -828,12 +829,15 @@ gtk_statusbar_size_allocate (GtkWidget *widget,
|
|||||||
/* chain up normally */
|
/* chain up normally */
|
||||||
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
|
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
|
||||||
|
|
||||||
if (statusbar->has_resize_grip && statusbar->grip_window)
|
if (statusbar->has_resize_grip)
|
||||||
{
|
{
|
||||||
gdk_window_raise (statusbar->grip_window);
|
if (statusbar->grip_window)
|
||||||
gdk_window_move_resize (statusbar->grip_window,
|
{
|
||||||
rect.x, rect.y,
|
gdk_window_raise (statusbar->grip_window);
|
||||||
rect.width, rect.height);
|
gdk_window_move_resize (statusbar->grip_window,
|
||||||
|
rect.x, rect.y,
|
||||||
|
rect.width, rect.height);
|
||||||
|
}
|
||||||
|
|
||||||
if (extra_children)
|
if (extra_children)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user