Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
gnome-libs
susemenu.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File susemenu.dif of Package gnome-libs
--- gnome-libs-1.4.1.7/libgnome/gnome-util.c +++ gnome-libs-1.4.1.7/libgnome/gnome-util.c @@ -156,7 +156,40 @@ char * gnome_pixmap_file (const char *filename) { - return (gnome_dirrelative_file (GNOMEDATADIR "/pixmaps", "share/pixmaps", filename, FALSE)); +gchar *iconname; +char r_filename[70]; +strcpy(r_filename,filename); +if ( (strstr(r_filename, ".png")==0) && (strlen(r_filename)>=5)) strcat(r_filename,".png"); + + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/hicolor/48x48/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/hicolor/misc/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/hicolor/32x32/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/hicolor/22x22/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/hicolor/16x16/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/locolor/48x48/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/locolor/32x32/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/locolor/22x22/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/usr/X11R6/share/icons/png/locolor/16x16/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/opt/kde/share/icons/hicolor/48x48/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/opt/kde/share/icons/hicolor/32x32/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/opt/kde/share/icons/hicolor/22x22/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + iconname=g_concat_dir_and_file("/opt/kde/share/icons/hicolor/16x16/apps/",r_filename); + if (g_file_exists(iconname)) return iconname; + + + return (gnome_dirrelative_file (GNOMEDATADIR "/pixmaps", "share/pixmaps", filename, FALSE)); } /**
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor