mirror of https://github.com/GNOME/gimp.git
gimp/app/nav_window.c
Sat Feb 26 23:58:27 GMT 2000 Andy Thomas <alt@gimp.org> * gimp/app/nav_window.c Now takes note of the users set preview size when close to the edge of the screen. If the user selected < MAX size of preview the popup would appear in the incorrect location of the screen. This is a slight change to the checkin of Sat Feb 19 13:53:34 CET 2000 by Sven Neumann <sven@gimp.org>
This commit is contained in:
parent
ab6ceea8bd
commit
0e0cb8b555
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
Sat Feb 26 23:58:27 GMT 2000 Andy Thomas <alt@gimp.org>
|
||||
|
||||
* gimp/app/nav_window.c
|
||||
|
||||
Now takes note of the users set preview size when close to the
|
||||
edge of the screen.
|
||||
If the user selected < MAX size of preview the popup would appear
|
||||
in the incorrect location of the screen. This is a slight change
|
||||
to the checkin of Sat Feb 19 13:53:34 CET 2000 by
|
||||
Sven Neumann <sven@gimp.org>
|
||||
|
||||
Sat Feb 26 19:56:35 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
Daniel Egger <Daniel.Egger@suse.de>
|
||||
|
||||
|
|
|
@ -1618,8 +1618,8 @@ nav_popup_click_handler (GtkWidget *widget,
|
|||
*/
|
||||
x = (x < 0) ? 0 : x;
|
||||
y = (y < 0) ? 0 : y;
|
||||
x = (x + NAV_PREVIEW_WIDTH > scr_w) ? scr_w - NAV_PREVIEW_WIDTH : x;
|
||||
y = (y + NAV_PREVIEW_HEIGHT > scr_h) ? scr_h - NAV_PREVIEW_HEIGHT : y;
|
||||
x = (x + iwp->pwidth > scr_w) ? scr_w - iwp->pwidth - 2: x;
|
||||
y = (y + iwp->pheight > scr_h) ? scr_h - iwp->pheight - 2: y;
|
||||
|
||||
gtk_widget_popup (gdisp->nav_popup, x, y);
|
||||
gdk_flush();
|
||||
|
|
|
@ -1618,8 +1618,8 @@ nav_popup_click_handler (GtkWidget *widget,
|
|||
*/
|
||||
x = (x < 0) ? 0 : x;
|
||||
y = (y < 0) ? 0 : y;
|
||||
x = (x + NAV_PREVIEW_WIDTH > scr_w) ? scr_w - NAV_PREVIEW_WIDTH : x;
|
||||
y = (y + NAV_PREVIEW_HEIGHT > scr_h) ? scr_h - NAV_PREVIEW_HEIGHT : y;
|
||||
x = (x + iwp->pwidth > scr_w) ? scr_w - iwp->pwidth - 2: x;
|
||||
y = (y + iwp->pheight > scr_h) ? scr_h - iwp->pheight - 2: y;
|
||||
|
||||
gtk_widget_popup (gdisp->nav_popup, x, y);
|
||||
gdk_flush();
|
||||
|
|
|
@ -1618,8 +1618,8 @@ nav_popup_click_handler (GtkWidget *widget,
|
|||
*/
|
||||
x = (x < 0) ? 0 : x;
|
||||
y = (y < 0) ? 0 : y;
|
||||
x = (x + NAV_PREVIEW_WIDTH > scr_w) ? scr_w - NAV_PREVIEW_WIDTH : x;
|
||||
y = (y + NAV_PREVIEW_HEIGHT > scr_h) ? scr_h - NAV_PREVIEW_HEIGHT : y;
|
||||
x = (x + iwp->pwidth > scr_w) ? scr_w - iwp->pwidth - 2: x;
|
||||
y = (y + iwp->pheight > scr_h) ? scr_h - iwp->pheight - 2: y;
|
||||
|
||||
gtk_widget_popup (gdisp->nav_popup, x, y);
|
||||
gdk_flush();
|
||||
|
|
Loading…
Reference in New Issue