added settings file
authorVlad Vasiliev <vlad@toshiba2.oblgaz>
Sat, 27 Mar 2010 21:58:38 +0000 (23:58 +0200)
committerVlad Vasiliev <vlad@toshiba2.oblgaz>
Sat, 27 Mar 2010 21:58:38 +0000 (23:58 +0200)
applet/src/Makefile
applet/src/Makefile.am
applet/src/livewp-common.h [new file with mode: 0644]
applet/src/livewp-home-widget.c
applet/src/livewp-home-widget.h
applet/src/livewp-settings.c [new file with mode: 0644]
applet/src/livewp-settings.h [new file with mode: 0644]

index c290f29..8c1b263 100644 (file)
@@ -52,7 +52,7 @@ LTLIBRARIES = $(desktoplib_LTLIBRARIES)
 am__DEPENDENCIES_1 =
 liblivewp_home_widget_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
 am_liblivewp_home_widget_la_OBJECTS = livewp-home-widget.lo \
-       livewp-astro.lo livewp-rules.lo
+       livewp-astro.lo livewp-rules.lo livewp-settings.lo
 liblivewp_home_widget_la_OBJECTS =  \
        $(am_liblivewp_home_widget_la_OBJECTS)
 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
@@ -60,7 +60,8 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 DEP_FILES = ./$(DEPDIR)/livewp-astro.Plo \
        ./$(DEPDIR)/livewp-home-widget.Plo \
-       ./$(DEPDIR)/livewp-rules.Plo
+       ./$(DEPDIR)/livewp-rules.Plo \
+       ./$(DEPDIR)/livewp-settings.Plo
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
@@ -186,7 +187,11 @@ target_alias =
 # so we can specify the non-standard installation directory.
 desktoplib_LTLIBRARIES = liblivewp-home-widget.la
 desktoplibdir = $(HILDON_DESKTOP_LIB_DIR)
-liblivewp_home_widget_la_SOURCES = livewp-home-widget.c livewp-home-widget.h livewp-astro.c livewp-astro.h livewp-rules.c livewp-rules.h
+liblivewp_home_widget_la_SOURCES = livewp-home-widget.c livewp-home-widget.h \
+                                  livewp-astro.c livewp-astro.h \
+                                  livewp-rules.c livewp-rules.h \
+                                  livewp-settings.c livewp-settings.h livewp-common.h 
+
 liblivewp_home_widget_la_LIBADD = $(EXAMPLE_LIBS) 
 AM_CFLAGS = -Wall $(EXAMPLE_CFLAGS) 
 all: all-am
@@ -261,6 +266,7 @@ distclean-compile:
 include ./$(DEPDIR)/livewp-astro.Plo
 include ./$(DEPDIR)/livewp-home-widget.Plo
 include ./$(DEPDIR)/livewp-rules.Plo
+include ./$(DEPDIR)/livewp-settings.Plo
 
 .c.o:
        if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
index c532e86..9393939 100644 (file)
@@ -3,7 +3,11 @@
 desktoplib_LTLIBRARIES =  liblivewp-home-widget.la
 desktoplibdir = $(HILDON_DESKTOP_LIB_DIR)
 
-liblivewp_home_widget_la_SOURCES = livewp-home-widget.c livewp-home-widget.h livewp-astro.c livewp-astro.h livewp-rules.c livewp-rules.h
+liblivewp_home_widget_la_SOURCES = livewp-home-widget.c livewp-home-widget.h \
+                                  livewp-astro.c livewp-astro.h \
+                                  livewp-rules.c livewp-rules.h \
+                                  livewp-settings.c livewp-settings.h livewp-common.h 
+
 liblivewp_home_widget_la_LIBADD = $(EXAMPLE_LIBS) 
 
 AM_CFLAGS = -Wall $(EXAMPLE_CFLAGS) 
diff --git a/applet/src/livewp-common.h b/applet/src/livewp-common.h
new file mode 100644 (file)
index 0000000..e0aeabc
--- /dev/null
@@ -0,0 +1,26 @@
+/* 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 <gtk/gtk.h>
+#include <hildon/hildon.h>
index c22e277..dcc7ee3 100644 (file)
@@ -22,8 +22,7 @@
  * 02110-1301 USA
 */
 /*******************************************************************************/
-#include <gtk/gtk.h>
-#include <hildon/hildon.h>
+#include "livewp-common.h"
 #include "livewp-home-widget.h"
 #include <gconf/gconf-client.h>
 #include "livewp-rules.h"
@@ -369,10 +368,7 @@ plugin_on_timeout (gpointer data)
   */
   return TRUE; /* keep running this event */
 }
-void
-live_wallpaper_settings(GtkWidget *widget, gpointer user_data){
-       fprintf(stderr,"test\n");
-}
+
 static void
 animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
 {
index 3688aab..2df0e80 100644 (file)
@@ -94,5 +94,5 @@ struct _Animation_WallpaperPrivate
 {
       gpointer data;
 };
-
+void live_wallpaper_settings(GtkWidget *widget, gpointer user_data);
 #endif
diff --git a/applet/src/livewp-settings.c b/applet/src/livewp-settings.c
new file mode 100644 (file)
index 0000000..42c88d5
--- /dev/null
@@ -0,0 +1,43 @@
+/* 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-settings.h"
+/*******************************************************************************/
+
+void 
+live_wallpaper_settings(GtkWidget *widget, gpointer user_data)
+{
+    gint result;
+    GtkWidget *window = NULL;
+       fprintf(stderr,"test\n");
+    window = gtk_dialog_new();
+//    gtk_window_set_title(GTK_WINDOW(window), _("Live Wallpaper Settings"));
+    gtk_window_set_title(GTK_WINDOW(window), "Live Wallpaper Settings");
+    gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
+    gtk_window_set_modal(GTK_WINDOW(window), TRUE);
+    result = gtk_dialog_run(GTK_DIALOG(window));
+    if (result == GTK_RESPONSE_YES){
+           fprintf(stderr,"Yes\n");
+    }
+}
diff --git a/applet/src/livewp-settings.h b/applet/src/livewp-settings.h
new file mode 100644 (file)
index 0000000..927d465
--- /dev/null
@@ -0,0 +1,26 @@
+/* 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 live_wallpaper_settings(GtkWidget *widget, gpointer user_data);