[Goodies-commits] r4878 - in xfmpc/trunk: . src
Mike Massonnet
mmassonnet at xfce.org
Sun Jun 1 21:17:17 CEST 2008
Author: mmassonnet
Date: 2008-06-01 19:17:17 +0000 (Sun, 01 Jun 2008)
New Revision: 4878
Modified:
xfmpc/trunk/autogen.sh
xfmpc/trunk/src/extended-interface.c
Log:
Misc fixes
* autogen.sh:
- s,remotes/trunk,git-svn, to fetch the svn revision with git-svn
* src/extended-interface.c:
- Forgot to include xfce-arrow-button.h
* src/extended-interface.c(position_context_menu):
- Remove ythickness from *y (need to find the good way)
- Check if the menu pops out over the top of screen
Modified: xfmpc/trunk/autogen.sh
===================================================================
--- xfmpc/trunk/autogen.sh 2008-06-01 19:17:13 UTC (rev 4877)
+++ xfmpc/trunk/autogen.sh 2008-06-01 19:17:17 UTC (rev 4878)
@@ -30,7 +30,7 @@
# substitute revision and linguas
linguas=`sed -e '/^#/d' po/LINGUAS`
if test -d .git/svn; then
- revision=`LC_ALL=C git-svn find-rev remotes/trunk`
+ revision=`LC_ALL=C git-svn find-rev git-svn`
elif test -f .svn; then
revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
else
Modified: xfmpc/trunk/src/extended-interface.c
===================================================================
--- xfmpc/trunk/src/extended-interface.c 2008-06-01 19:17:13 UTC (rev 4877)
+++ xfmpc/trunk/src/extended-interface.c 2008-06-01 19:17:17 UTC (rev 4878)
@@ -27,6 +27,7 @@
#include "mpdclient.h"
#include "playlist.h"
#include "dbbrowser.h"
+#include "xfce-arrow-button.h"
#define BORDER 4
@@ -377,9 +378,14 @@
gdk_window_get_origin (widget->window, &root_x, &root_y);
*x = root_x + widget->allocation.x;
- *y = root_y + widget->allocation.y + widget->style->ythickness;
+ /* TODO find the good way to add spacing to *y */
+ *y = root_y + widget->allocation.y;
if (*y > gdk_screen_height () - menu_req.height)
*y = gdk_screen_height () - menu_req.height;
+ else if (*y < 0)
+ *y = 0;
+
+ *push_in = FALSE;
}
More information about the Goodies-commits
mailing list