mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Make it work better with multiple monitors.
2007-05-21 Tor Lillqvist <tml@novell.com> * gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with multiple monitors. svn path=/trunk/; revision=17881
This commit is contained in:
parent
ffbf29ea1f
commit
dcf81c53dc
@ -1,3 +1,8 @@
|
||||
2007-05-21 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with
|
||||
multiple monitors.
|
||||
|
||||
2007-05-20 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
|
||||
|
||||
* gdk/directfb/gdkwindow-directfb.c:
|
||||
|
@ -694,8 +694,8 @@ gtk_scale_popup (GtkWidget *widget,
|
||||
|
||||
d = GTK_WIDGET (priv->dock);
|
||||
monitor = gdk_screen_get_monitor_at_point (screen,
|
||||
button_event->x,
|
||||
button_event->y);
|
||||
button_event->x_root,
|
||||
button_event->y_root);
|
||||
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
|
||||
|
||||
y += button_event->y;
|
||||
@ -706,7 +706,7 @@ gtk_scale_popup (GtkWidget *widget,
|
||||
|
||||
if (x < rect.x)
|
||||
x = rect.x;
|
||||
else if (x + d->allocation.width > rect.width - rect.x)
|
||||
else if (x + d->allocation.width > rect.width + rect.x)
|
||||
x = rect.x + rect.width - d->allocation.width;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user