desktop_plugin->priv->view = id;
g_free(strid);
- fprintf(stderr,"ID !!!!!!!!!! %i\n",id);
switch (id){
case 0: child_argv[1] = "1";
}
desktop_plugin->priv->pid = fork();
if (desktop_plugin->priv->pid == 0){
- fprintf(stderr,"New proceess !!!!!!!!!! %s\n",child_argv[1]);
execvp("/usr/bin/livewp", child_argv);
fprintf(stderr,"Problem with new process");
}
view_changed (GConfClient *client, guint cnxn_id,
GConfEntry *entry, Animation_WallpaperPrivate *priv)
{
- GConfValue *value;
- value = gconf_entry_get_value (entry);
- if (value) {
- if (priv->view == gconf_value_get_int (value))
+ if (entry->value->type == GCONF_VALUE_INT) {
+ if (priv->view == gconf_value_get_int(entry->value))
priv->visible = TRUE;
else
priv->visible = FALSE;
priv->long_timer = 0;
}
}
- gconf_value_free(value);
}
}
/*******************************************************************************/