summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-01-29 15:23:22 +0000
committerTom Hacohen <tom@stosb.com>2014-01-30 15:22:03 +0000
commite454322bd4fb93bd14419f1d42d4bad20a15540b (patch)
treecd732976d9dbef6cecfbb36591d709347e0a0e23
parentc7ad8359140d4da57b1551a5bc0afb6f8ca9a3e4 (diff)
downloadenlightenment-devs/tasn/e19_tiling2.tar.gz
Tiling2: Added an help button.devs/tasn/e19_tiling2
-rw-r--r--src/modules/tiling2/e_mod_config.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/modules/tiling2/e_mod_config.c b/src/modules/tiling2/e_mod_config.c
index 33a49e7913..548f1200cd 100644
--- a/src/modules/tiling2/e_mod_config.c
+++ b/src/modules/tiling2/e_mod_config.c
@@ -11,6 +11,20 @@ struct _E_Widget_Smart_Data
Eina_List *subobjs;
};
+static void
+_open_browser_help_cb(void *data EINA_UNUSED, void *obj EINA_UNUSED)
+{
+ const char *url = "https://phab.enlightenment.org/w/enlightenment_module_tiling2/";
+ char *sb;
+ size_t size = 4096, len = sizeof(E_BINDIR "/enlightenment_open ") - 1;
+
+ sb = malloc(size);
+ memcpy(sb, E_BINDIR "/enlightenment_open ", len);
+ sb = e_util_string_append_quoted(sb, &size, &len, url);
+ ecore_exe_run(sb, NULL);
+ free(sb);
+}
+
/* Some defines to make coding with the e_widget_* easier for
* configuration panel */
#define RADIO(title, value, radiogroup) \
@@ -171,8 +185,6 @@ _basic_create_widgets(E_Config_Dialog *cfd __UNUSED__,
e_widget_framelist_object_append(of,
e_widget_check_add(evas, _("Tile dialog windows"),
&cfdata->config.tile_dialogs));
- oc = e_widget_list_add(evas, false, true);
- e_widget_framelist_object_append(of, oc);
LIST_ADD(o, of);
@@ -209,6 +221,10 @@ _basic_create_widgets(E_Config_Dialog *cfd __UNUSED__,
LIST_ADD(o, of);
+ oc = e_widget_button_add(evas, _("Help"), "help", _open_browser_help_cb,
+ NULL, NULL);
+ LIST_ADD(o, oc);
+
return o;
}