xfdesktop panel-plugin patch for bug 1660
Brian J. Tarricone
bjt23 at cornell.edu
Fri Apr 21 01:41:51 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Please attach it to the bug. I don't have time right now.
On 4/20/2006 10:06 AM, juha wrote:
> Hi Brian,
>
> Please, apply the attached patch to fix bug 1660.
>
> /Juha
>
>
> ------------------------------------------------------------------------
>
> --- desktop-menu-plugin.c.orig 2006-04-20 19:24:00.000000000 +0300
> +++ desktop-menu-plugin.c 2006-04-20 19:20:05.000000000 +0300
> @@ -290,8 +290,19 @@ dmp_position_menu (GtkMenu *menu, int *x
> break;
>
> default: /* floating */
> + {
> + GdkScreen *screen = g_new(GdkScreen,1);
> + gint screen_width, screen_height;
> +
> gdk_display_get_pointer(gtk_widget_get_display(GTK_WIDGET(dmp->plugin)),
> - NULL, x, y, NULL);
> + &screen, x, y, NULL);
> + screen_width = gdk_screen_get_width(screen);
> + screen_height = gdk_screen_get_height(screen);
> + if ((*x + req.width) > screen_width)
> + *x -= req.width;
> + if ((*y + req.height) > screen_height)
> + *y -= req.height;
> + }
> }
>
> if (*x < 0)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFESBw/6XyW6VEeAnsRAmswAKDfiSDwN1ovoXl/oYP/bFUt0heIvgCgh2a4
z2o/PPy+Cjfs7qn4lwPItBM=
=6DP7
-----END PGP SIGNATURE-----
More information about the Xfce4-dev
mailing list