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:
parent
62eaa651a4
commit
3534bbab37
@ -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
|
||||
|
14
x11/fbpanel/patches/patch-plugins_menu_c
Normal file
14
x11/fbpanel/patches/patch-plugins_menu_c
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user