Fix issue where all desktop files were duplicated in menus, due to

g_get_system_data_dirs() reporting usr/local/share twice, cf
http://sourceforge.net/tracker/?func=detail&aid=1872819&group_id=66031&atid=513125
Reported & fix found by "J. Scott Heppler" shepper at earthlink.net,
thanks!
While here, drop maintainership. I don't want to be responsible for
an app with such a crappy code.
This commit is contained in:
landry 2009-05-30 21:34:16 +00:00
parent 62eaa651a4
commit 3534bbab37
2 changed files with 16 additions and 3 deletions

View File

@ -1,16 +1,15 @@
# $OpenBSD: Makefile,v 1.4 2009/03/07 14:23:24 jasper Exp $
# $OpenBSD: Makefile,v 1.5 2009/05/30 21:34:16 landry Exp $
SHARED_ONLY= Yes
COMMENT= lightweight NETWM compliant desktop panel
DISTNAME= fbpanel-4.12
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= x11
EXTRACT_SUFX= .tgz
HOMEPAGE= http://fbpanel.sourceforge.net/
MAINTAINER= Landry Breuil <gaston@gcu.info>
# BSD
PERMIT_PACKAGE_CDROM= Yes

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-plugins_menu_c,v 1.1 2009/05/30 21:34:16 landry Exp $
--- plugins/menu.c.orig Mon Jul 30 17:38:54 2007
+++ plugins/menu.c Sat May 30 15:21:02 2009
@@ -92,8 +92,8 @@ _menu_shell_insert_sorted(GtkMenuShell *menu_shell, Gt
items = gtk_container_get_children(GTK_CONTAINER(menu_shell));
for(i=0; items; items=items->next, i++) {
cmpname = (gchar *)g_object_get_data(G_OBJECT(items->data), "item-name");
- if(cmpname && g_ascii_strcasecmp(name, cmpname) < 0)
- break;
+ if(cmpname && g_ascii_strcasecmp(name, cmpname) == 0)
+ return -1;
}
gtk_menu_shell_insert(menu_shell, mi, i);
return i;