hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=ad16037c4d1ba1dcb74c19e41d3def5b150f690c

commit ad16037c4d1ba1dcb74c19e41d3def5b150f690c
Author: Hermet Park <[email protected]>
Date:   Wed Jun 1 22:51:43 2016 +0900

    renamed about to help.
    
    Come to think of it, About func is more than About.
    
    Help is better name for it.
---
 configure.ac                          |  2 +-
 data/Makefile.am                      |  2 +-
 data/{about => help}/COMMAND          |  0
 data/{about => help}/DEVEL            |  0
 data/{about => help}/HISTORY          |  0
 data/{about => help}/INTRO            |  0
 data/{about => help}/Makefile.am      |  2 +-
 data/{about => help}/SHORTCUT         |  0
 data/themes/default/layout_common.edc |  6 +++---
 src/bin/Makefile.am                   |  2 +-
 src/bin/{about.c => help.c}           | 28 ++++++++++++++--------------
 src/bin/main.c                        |  2 +-
 src/bin/menu.c                        | 10 +++++-----
 src/include/Makefile.am               |  2 +-
 src/include/about.h                   |  5 -----
 src/include/common.h                  |  2 +-
 src/include/help.h                    |  5 +++++
 17 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/configure.ac b/configure.ac
index 920afec..e8bedf9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,7 +129,7 @@ data/templates/Makefile
 data/color/Makefile
 data/autocomp/Makefile
 data/sounds/Makefile
-data/about/Makefile
+data/help/Makefile
 pc/enventor.pc
 ])
 
diff --git a/data/Makefile.am b/data/Makefile.am
index 132aa94..8a1d4f4 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,3 +1,3 @@
 MAINTAINERCLEANFILES = Makefile.in
 
-SUBDIRS = images themes templates desktop icon color sounds about autocomp
+SUBDIRS = images themes templates desktop icon color sounds help autocomp
diff --git a/data/about/COMMAND b/data/help/COMMAND
similarity index 100%
rename from data/about/COMMAND
rename to data/help/COMMAND
diff --git a/data/about/DEVEL b/data/help/DEVEL
similarity index 100%
rename from data/about/DEVEL
rename to data/help/DEVEL
diff --git a/data/about/HISTORY b/data/help/HISTORY
similarity index 100%
rename from data/about/HISTORY
rename to data/help/HISTORY
diff --git a/data/about/INTRO b/data/help/INTRO
similarity index 100%
rename from data/about/INTRO
rename to data/help/INTRO
diff --git a/data/about/Makefile.am b/data/help/Makefile.am
similarity index 75%
rename from data/about/Makefile.am
rename to data/help/Makefile.am
index 1b01716..3be6f8f 100644
--- a/data/about/Makefile.am
+++ b/data/help/Makefile.am
@@ -1,5 +1,5 @@
 MAINTAINERCLEANFILES = Makefile.in
-filesdir = $(datadir)/$(PACKAGE)/about
+filesdir = $(datadir)/$(PACKAGE)/help
 files_DATA = \
 INTRO \
 HISTORY \
diff --git a/data/about/SHORTCUT b/data/help/SHORTCUT
similarity index 100%
rename from data/about/SHORTCUT
rename to data/help/SHORTCUT
diff --git a/data/themes/default/layout_common.edc 
b/data/themes/default/layout_common.edc
index 713280a..8ab6803 100644
--- a/data/themes/default/layout_common.edc
+++ b/data/themes/default/layout_common.edc
@@ -794,7 +794,7 @@ group { name: "menu_layout";
             align: 0 0.5;
          }
       }
-      part { name: "elm.swallow.about_btn";
+      part { name: "elm.swallow.help_btn";
          type: SWALLOW;
          scale: 1;
          clip_to: "clipper";
@@ -811,8 +811,8 @@ group { name: "menu_layout";
          type: SPACER;
          scale: 1;
          description { state: "default" 0.0;
-            rel1.to: "elm.swallow.about_btn";
-            rel2.to: "elm.swallow.about_btn";
+            rel1.to: "elm.swallow.help_btn";
+            rel2.to: "elm.swallow.help_btn";
             rel1.relative: 1 0;
             min: 23 50;
             fixed: 1 1;
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index c7c1174..52bf3ed 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -33,7 +33,7 @@ enventor_SOURCES = \
        file_browser.c \
        build_setting.c \
        preference_setting.c \
-       about.c
+       help.c
 
 enventor_LDADD = \
        $(top_builddir)/src/lib/libenventor.la \
diff --git a/src/bin/about.c b/src/bin/help.c
similarity index 91%
rename from src/bin/about.c
rename to src/bin/help.c
index 9658c79..3b3d21b 100644
--- a/src/bin/about.c
+++ b/src/bin/help.c
@@ -6,8 +6,8 @@
 
 static Evas_Coord win_x = -1;
 static Evas_Coord win_y = -1;
-static Evas_Coord win_w = DEFAULT_ABOUT_WIN_W;
-static Evas_Coord win_h = DEFAULT_ABOUT_WIN_H;
+static Evas_Coord win_w = DEFAULT_HELP_WIN_W;
+static Evas_Coord win_h = DEFAULT_HELP_WIN_H;
 static Evas_Object *g_win = NULL;
 
 static void
@@ -15,14 +15,14 @@ keygrabber_key_down_cb(void *data EINA_UNUSED, Evas *e 
EINA_UNUSED,
                        Evas_Object *obj  EINA_UNUSED,
                        void *event_info EINA_UNUSED)
 {
-   about_close();
+   help_close();
 }
 
 static void
 win_delete_request_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
                       void *event_info EINA_UNUSED)
 {
-   about_close();
+   help_close();
 }
 
 static void
@@ -36,7 +36,7 @@ win_moved_cb(void *data EINA_UNUSED, Evas_Object *obj,
 }
 
 void
-about_open(void)
+help_open(void)
 {
    Evas_Object *win = g_win;
    if (win)
@@ -49,9 +49,9 @@ about_open(void)
    char buf[PATH_MAX];
 
    //Win
-   win = elm_win_add(base_win_get(), _("Enventor About"), ELM_WIN_BASIC);
+   win = elm_win_add(base_win_get(), _("Enventor Help"), ELM_WIN_BASIC);
    elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
-   elm_win_title_set(win, _("About"));
+   elm_win_title_set(win, _("Help"));
    evas_object_smart_callback_add(win, "delete,request", win_delete_request_cb,
                                   NULL);
    evas_object_smart_callback_add(win, "moved", win_moved_cb, NULL);
@@ -76,7 +76,7 @@ about_open(void)
    //Frame1: Introduction
    Evas_Object *intro_frame = elm_frame_add(box);
    elm_frame_autocollapse_set(intro_frame, EINA_TRUE);
-   elm_object_text_set(intro_frame, "Introduction");
+   elm_object_text_set(intro_frame, "About");
    evas_object_size_hint_weight_set(intro_frame, EVAS_HINT_EXPAND, 0);
    evas_object_size_hint_align_set(intro_frame, EVAS_HINT_FILL, 0);
    evas_object_show(intro_frame);
@@ -91,7 +91,7 @@ about_open(void)
    elm_object_content_set(intro_frame, entry);
 
    //Read File
-   snprintf(buf, sizeof(buf), "%s/about/INTRO", elm_app_data_dir_get());
+   snprintf(buf, sizeof(buf), "%s/help/INTRO", elm_app_data_dir_get());
    elm_entry_autosave_set(entry, EINA_FALSE);
    elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8);
 
@@ -116,7 +116,7 @@ about_open(void)
    elm_object_content_set(version_frame, entry);
 
    //Read File
-   snprintf(buf, sizeof(buf), "%s/about/HISTORY", elm_app_data_dir_get());
+   snprintf(buf, sizeof(buf), "%s/help/HISTORY", elm_app_data_dir_get());
    elm_entry_autosave_set(entry, EINA_FALSE);
    elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8);
 
@@ -140,7 +140,7 @@ about_open(void)
    elm_object_content_set(key_frame, entry);
 
    //Read File
-   snprintf(buf, sizeof(buf), "%s/about/SHORTCUT", elm_app_data_dir_get());
+   snprintf(buf, sizeof(buf), "%s/help/SHORTCUT", elm_app_data_dir_get());
    elm_entry_autosave_set(entry, EINA_FALSE);
    elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8);
 
@@ -164,7 +164,7 @@ about_open(void)
    elm_object_content_set(command_frame, entry);
 
    //Read File
-   snprintf(buf, sizeof(buf), "%s/about/COMMAND", elm_app_data_dir_get());
+   snprintf(buf, sizeof(buf), "%s/help/COMMAND", elm_app_data_dir_get());
    elm_entry_autosave_set(entry, EINA_FALSE);
    elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8);
 
@@ -197,7 +197,7 @@ about_open(void)
    elm_object_content_set(devel_frame, entry);
 
    //Read File
-   snprintf(buf, sizeof(buf), "%s/about/DEVEL", elm_app_data_dir_get());
+   snprintf(buf, sizeof(buf), "%s/help/DEVEL", elm_app_data_dir_get());
    elm_entry_autosave_set(entry, EINA_FALSE);
    elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8);
 
@@ -219,7 +219,7 @@ about_open(void)
 }
 
 void
-about_close(void)
+help_close(void)
 {
    Evas_Object *win = g_win;
    if (!win) return;
diff --git a/src/bin/main.c b/src/bin/main.c
index b044e3c..d90d21c 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -746,7 +746,7 @@ keygrabber_key_down_cb(void *data EINA_UNUSED, Evas *e 
EINA_UNUSED,
      {
         enventor_object_ctxpopup_dismiss(base_enventor_get());
         live_edit_cancel();
-        about_open();
+        help_open();
         return;
      }
    //New
diff --git a/src/bin/menu.c b/src/bin/menu.c
index b4b57b7..6562cb3 100644
--- a/src/bin/menu.c
+++ b/src/bin/menu.c
@@ -208,10 +208,10 @@ warning_open(menu_data *md, Evas_Smart_Cb yes_cb, 
Evas_Smart_Cb save_cb)
 }
 
 static void
-about_btn_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
+help_btn_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
             void *event_info EINA_UNUSED)
 {
-   about_open();
+   help_open();
 }
 
 static void
@@ -590,9 +590,9 @@ menu_open(menu_data *md)
    btn = btn_create(layout, _("Settings"), setting_btn_cb, md);
    elm_object_part_content_set(layout, "elm.swallow.setting_btn", btn);
 
-   //Button(About)
-   btn = btn_create(layout, _("About"), about_btn_cb, md);
-   elm_object_part_content_set(layout, "elm.swallow.about_btn", btn);
+   //Button(Help)
+   btn = btn_create(layout, _("Help"), help_btn_cb, md);
+   elm_object_part_content_set(layout, "elm.swallow.help_btn", btn);
 
    //Button(Exit)
    btn = btn_create(layout, _("Exit"), exit_btn_cb, md);
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index 6cc70a7..ff7891f 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -20,4 +20,4 @@ EXTRA_DIST = common.h \
        file_browser.h \
        build_setting.h \
        preference_setting.h \
-       about.h
+       help.h
diff --git a/src/include/about.h b/src/include/about.h
deleted file mode 100644
index 5fedf75..0000000
--- a/src/include/about.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define DEFAULT_ABOUT_WIN_W 533
-#define DEFAULT_ABOUT_WIN_H 533
-
-void about_open(void);
-void about_close(void);
diff --git a/src/include/common.h b/src/include/common.h
index fd517cc..c03d6e5 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -84,7 +84,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
 #include "file_mgr.h"
 #include "build_setting.h"
 #include "preference_setting.h"
-#include "about.h"
+#include "help.h"
 
 /* localization */
 #ifdef HAVE_GETTEXT
diff --git a/src/include/help.h b/src/include/help.h
new file mode 100644
index 0000000..db281d5
--- /dev/null
+++ b/src/include/help.h
@@ -0,0 +1,5 @@
+#define DEFAULT_HELP_WIN_W 533
+#define DEFAULT_HELP_WIN_H 533
+
+void help_open(void);
+void help_close(void);

-- 


Reply via email to