updated mcs plugin for xffm

edscott wilson garcia edscott at imp.mx
Tue Mar 11 04:19:55 CET 2003


Trying my best to pin the blame a segv in the xffm-mcs-plugin on Jasper,
I took to rewriting the mcs-plugin code taken from the panel, but had no
luck in finding the error (I found it later in my code where I should
have looked in the first place). 

Jasper, you might want to consider an alternate way to initialize the 
McsSetting values, which IMHO might be more efficient. Instead of a
subroutine and switch, this is the way I put it in the xffm-mcs-plugin:




enum {
    XFFM_ICON_SIZE,
    XFFM_PREFERENCES,
    XFFM_VIEW,
    XFFM_THEME,
    XFFM_LAYER,
    XFFM_HOME,
    XFFM_SMB_USER,
    XFFM_OPTIONS
};

static McsSetting xffm_options[XFFM_OPTIONS]={
	{"icon_size",CHANNEL,MCS_TYPE_INT,{2},0},
	{"preferences",CHANNEL,MCS_TYPE_INT,{0},0},
	{"view",CHANNEL,MCS_TYPE_INT,{0},0},
	{"theme",CHANNEL,MCS_TYPE_STRING,{NULL},0},
	{"xffm_layer",CHANNEL,MCS_TYPE_INT,{1},0},
	{"homedir",CHANNEL,MCS_TYPE_STRING,{NULL},0},
	{"smb_user",CHANNEL,MCS_TYPE_STRING,{NULL},0}
 };


it seems to work ok.

Edscott







More information about the Xfce4-dev mailing list