aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-02-11 10:45:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-02-11 10:45:32 +0000
commit151709165255026047b3f3473f043511695b9d8f (patch)
tree0fadad577458aab39e5a6ba1abc54b02eade6f1b
parentb164a4c0db216ef3925b4186f24e17526c5aea2c (diff)
downloadenlightenment-151709165255026047b3f3473f043511695b9d8f.tar.gz
enlightenment-151709165255026047b3f3473f043511695b9d8f.tar.xz
enlightenment-151709165255026047b3f3473f043511695b9d8f.zip
add wiz page about update checks.
SVN revision: 67848
-rw-r--r--src/modules/wizard/Makefile.am9
-rw-r--r--src/modules/wizard/page_170.c80
2 files changed, 88 insertions, 1 deletions
diff --git a/src/modules/wizard/Makefile.am b/src/modules/wizard/Makefile.am
index 1308312d4..092980bb7 100644
--- a/src/modules/wizard/Makefile.am
+++ b/src/modules/wizard/Makefile.am
@@ -62,6 +62,7 @@ pkg_LTLIBRARIES = module.la \
page_140.la \
page_150.la \
page_160.la \
+ page_170.la \
page_200.la
module_la_SOURCES = e_mod_main.c \
@@ -163,7 +164,7 @@ page_140_la_LIBADD = @e_libs@ @dlopen_libs@
page_140_la_LDFLAGS = -module -avoid-version
page_140_la_DEPENDENCIES = $(top_builddir)/config.h
-#Auto - do we need temperature?
+#Request if compositing is wanted
page_150_la_SOURCES = page_150.c $(top_srcdir)/src/modules/comp/e_mod_comp_cfdata.c
page_150_la_LIBADD = @e_libs@ @dlopen_libs@
page_150_la_LDFLAGS = -module -avoid-version
@@ -175,6 +176,12 @@ page_160_la_LIBADD = @e_libs@ @dlopen_libs@
page_160_la_LDFLAGS = -module -avoid-version
page_160_la_DEPENDENCIES = $(top_builddir)/config.h
+#Request if user agrees to checking for updates
+page_170_la_SOURCES = page_170.c
+page_170_la_LIBADD = @e_libs@ @dlopen_libs@
+page_170_la_LDFLAGS = -module -avoid-version
+page_170_la_DEPENDENCIES = $(top_builddir)/config.h
+
#Auto - finish up applying
page_200_la_SOURCES = page_200.c
page_200_la_LIBADD = @e_libs@ @dlopen_libs@
diff --git a/src/modules/wizard/page_170.c b/src/modules/wizard/page_170.c
new file mode 100644
index 000000000..b92e3f0da
--- /dev/null
+++ b/src/modules/wizard/page_170.c
@@ -0,0 +1,80 @@
+/* Ask about compositing */
+#include "e.h"
+#include "e_mod_main.h"
+
+#define ENGINE_SW 1
+#define ENGINE_GL 2
+
+static int do_up = 1;
+
+EAPI int
+wizard_page_init(E_Wizard_Page *pg __UNUSED__)
+{
+ return 1;
+}
+
+EAPI int
+wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
+{
+ return 1;
+}
+
+EAPI int
+wizard_page_show(E_Wizard_Page *pg)
+{
+ Evas_Object *o, *of, *ob;
+
+ o = e_widget_list_add(pg->evas, 1, 0);
+ e_wizard_title_set(_("Updates"));
+
+ of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0);
+
+ ob = e_widget_textblock_add(pg->evas);
+ e_widget_size_min_set(ob, 200 * e_scale, 180 * e_scale);
+ e_widget_textblock_markup_set
+ (ob,
+ _("Enlightenment can check for new<br>"
+ "versions, updates, securiity and<br>"
+ "bugfixes, as well as available add-ons.<br>"
+ "<br>"
+ "This is very useful, because it lets you<br>"
+ "you know about available bug fixes and<br>"
+ "security fixes when they happen. As a<br>"
+ "bi-product of this, Enlightenment will<br>"
+ "connect to enlightenment.org and transmit<br>"
+ "some information as a result much like any<br>"
+ "web browser might do. No personal information<br>"
+ "such as username, password or any personal<br>"
+ "files will be transmitted. If you do not like<br>"
+ "this, please disable this below. It is highly<br>"
+ "advised that you do not disable this as it<br>"
+ "may leave you vulnerable or having to live<br>"
+ "with bugs."
+ )
+ );
+ e_widget_framelist_object_append(of, ob);
+
+ ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up));
+ e_widget_framelist_object_append(of, ob);
+
+ e_widget_list_object_append(o, of, 0, 0, 0.5);
+
+ evas_object_show(of);
+
+ e_wizard_page_show(o);
+ return 1; /* 1 == show ui, and wait for user, 0 == just continue */
+}
+
+EAPI int
+wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
+{
+ e_config->update.check = do_up;
+ e_config_save_queue();
+ return 1;
+}
+
+EAPI int
+wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
+{
+ return 1;
+}