<theme>
<name>Conky</name>
- <exec_path>/usr/bin/conky -d</exec_path>
+ <exec_path>/usr/bin/conky</exec_path>
<category>Unknown</category>
<icon_on>/usr/share/livewp/theme/Xsnow/icon.png</icon_on>
<icon_off>/usr/share/livewp/theme/Xsnow/icond.png</icon_off>
livewp-dbus.c livewp-dbus.h \
livewp-actor.c livewp-actor.h \
livewp-exthemes.c livewp-exthemes.h \
- livewp-scene.c livewp-scene.h
+ livewp-scene.c livewp-scene.h \
+ livewp-conky.c livewp-conky.h
+
bin_PROGRAMS = livewp
GSList *store = priv->extheme_list;
while (store){
if (!strcmp(priv->theme, g_hash_table_lookup(store->data, "name"))){
- priv->scene_func = (gpointer)&init_scene_External;
+ if (!strcmp(priv->theme, "Conky"))
+ priv->scene_func = (gpointer)&init_scene_Conky;
+
+ /* Default function for external themes init_scene_External */
+ if (priv->scene_func)
+ priv->scene_func = (gpointer)&init_scene_External;
priv->hash_theme = store->data;
break;
}
void init_scene_Video(AWallpaperPlugin *desktop_plugin);
void init_scene_External(AWallpaperPlugin *desktop_plugin);
void init_scene_theme(AWallpaperPlugin *desktop_plugin);
+void init_scene_Conky(AWallpaperPlugin *desktop_plugin);
gint read_config(Animation_WallpaperPrivate *priv);
void save_config(Animation_WallpaperPrivate *priv);
void fill_priv(Animation_WallpaperPrivate *priv);
--- /dev/null
+/*vim: set sw=4 ts=4 et: */
+/*
+ * This file is part of Live Wallpaper (livewp)
+ *
+ * Copyright (C) 2010 Vlad Vasiliev
+ * Copyright (C) 2010 Tanya Makova
+ * for the code
+ *
+ * This software is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+*/
+/*******************************************************************************/
+#include "livewp-conky.h"
+void
+init_scene_Conky(AWallpaperPlugin *desktop_plugin){
+ init_scene_External(desktop_plugin);
+}
+
--- /dev/null
+/*vim: set sw=4 ts=4 et: */
+/*
+ * This file is part of Live Wallpaper (livewp)
+ *
+ * Copyright (C) 2010 Vlad Vasiliev
+ * Copyright (C) 2010 Tanya Makova
+ * for the code
+ *
+ * This software is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+*/
+/*******************************************************************************/
+#include "livewp-common.h"
+void init_scene_Conky(AWallpaperPlugin *desktop_plugin);
+void init_scene_External(AWallpaperPlugin *desktop_plugin);
*view = NULL,
*strwin = NULL,
*strview =NULL;
+ gint i;
Window id_xwindow;
if (!desktop_plugin->priv->visible)
return;
}
g_free(run_string);
if (window_name){
- sleep(2);
- id_xwindow = Window_With_Name(GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window),
- RootWindow( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), XDefaultScreen( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window))),
- window_name);
- set_live_bg (GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), id_xwindow, desktop_plugin->priv->view);
gtk_widget_destroy(desktop_plugin->priv->window);
+ /* Try 10 searching of window */
+ for (i=0; i<10; i++){
+ sleep(1);
+ id_xwindow = Window_With_Name(GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window),
+ RootWindow( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), XDefaultScreen( GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window))),
+ window_name);
+ if (id_xwindow >1){
+ set_live_bg (GDK_WINDOW_XDISPLAY (desktop_plugin->priv->window->window), id_xwindow, desktop_plugin->priv->view);
+ break;
+ }
+ }
}
}
/*******************************************************************************/