mime icons for panel

edscott wilson garcia edscott at lunar-linux.org
Sat Nov 22 15:19:29 CET 2003


On Sat, 2003-11-22 at 03:52, Jasper Huijsmans wrote:
> Op za 22-11-2003, om 03:45 schreef edscott wilson garcia:
> > Hey,
> > 
> > On Fri, 2003-11-21 at 15:02, Jasper Huijsmans wrote:
> > > Hey edscott,
> > > 
> > > I like this idea. I won't be able to look at it tonight, but I will
> > > certainly do so tomorrow. 
> > 
> > I just added about ten lines to item_dialog.c and committed to HEAD (new
> > code is enclosed within  #ifdef #endif blocks for easy removal) that add
> > a button to open xffm_theme_maker if the program is located in $PATH.
> > >From the theme_maker window the icons can be dragged to the properties
> > entry box. 
> > This is just one possibility (the easiest one). The properties dialog
> > could also load the mime_icons module and create an embedded treeview.
> > This second option would probably be faster. 
> > 
> 
> Well, I'm afraid I can't get the theme maker to work. After fixing the
> build files (updated in CVS) it builds fine, but when I run it, I get a
> segfault in the mime_icons module:

The traceback points to the mime_icons module from xffm, not really the
theme maker. Does the current xffm run or does it break too?  

> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 16384 (LWP 7289)]
> 0x405dbbb7 in _int_malloc () from /lib/libc.so.6
> (gdb) bt
> #0  0x405dbbb7 in _int_malloc () from /lib/libc.so.6
> #1  0x405dab83 in malloc () from /lib/libc.so.6
> #2  0x403bde67 in g_malloc () from /usr/lib/libglib-2.0.so.0
> #3  0x403ca87d in g_strconcat () from /usr/lib/libglib-2.0.so.0
> #4  0x40aafb2f in create_icon_hash (theme=0x80e1900 "plain")
>     at mime_icons.c:256
> #5  0x40ab0337 in mime_icon_load_theme (theme=0x80e1900 "plain")
>     at mime_icons.c:484
> #6  0x0804bd22 in create_icon_tree (in_theme=0x80e1900 "plain") at
> main.c:495
> #7  0x0804c7f9 in main (argc=1, argv=0xbffff874) at main.c:749
> (gdb) 

Weird. The offending line is:
    mimefile=g_strconcat(PACKAGE_DATA_DIR,
		    G_DIR_SEPARATOR_S,"xffm",
		    G_DIR_SEPARATOR_S,"pixmaps",
		    G_DIR_SEPARATOR_S,theme,
		    G_DIR_SEPARATOR_S,"mime.xml",NULL);
Which does not look bad... :-/
I'll try to do the building on Linux since I've only tested on FreeBSD.

> 
> 	Jasper
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
> 




More information about the Xfce4-dev mailing list