[EFL][WK2] Minibrowser : Add tooltip for toolbar buttons in Minibrowser
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Sep 2014 01:25:46 +0000 (01:25 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Sep 2014 01:25:46 +0000 (01:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=136284

Patch by Rohit Kumar <kumar.rohit@samsung.com> on 2014-09-10
Reviewed by Gyuyoung Kim.

* MiniBrowser/efl/main.c:
(window_create):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173503 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/MiniBrowser/efl/main.c

index d812ee3..87063a2 100644 (file)
@@ -1,3 +1,13 @@
+2014-09-10  Rohit Kumar  <kumar.rohit@samsung.com>
+
+        [EFL][WK2] Minibrowser : Add tooltip for toolbar buttons in Minibrowser
+        https://bugs.webkit.org/show_bug.cgi?id=136284
+
+        Reviewed by Gyuyoung Kim.
+
+        * MiniBrowser/efl/main.c:
+        (window_create):
+
 2014-09-10  Rebecca Hauck  <rhauck@adobe.com>
 
         import-w3c-tests doesn't handle relative paths to support files in ref files correctly
index ee981dc..2f9b6cc 100644 (file)
@@ -1960,6 +1960,8 @@ static Browser_Window *window_create(Evas_Object *opener, int width, int height)
     window->back_button = create_toolbar_button(window->elm_window, "arrow_left");
     evas_object_smart_callback_add(window->back_button, "clicked", on_back_button_clicked, window);
     evas_object_smart_callback_add(window->back_button, "repeated", on_back_button_longpress, window);
+    elm_object_tooltip_text_set(window->back_button, "Click to go back, longpress to see session history");
+    elm_object_tooltip_window_mode_set(window->back_button, EINA_TRUE);
     elm_object_disabled_set(window->back_button, EINA_TRUE);
     evas_object_size_hint_weight_set(window->back_button, 0.0, EVAS_HINT_EXPAND);
     evas_object_size_hint_align_set(window->back_button, 0.0, 0.5);
@@ -1970,6 +1972,8 @@ static Browser_Window *window_create(Evas_Object *opener, int width, int height)
     window->forward_button = create_toolbar_button(window->elm_window, "arrow_right");
     evas_object_smart_callback_add(window->forward_button, "clicked", on_forward_button_clicked, window);
     evas_object_smart_callback_add(window->forward_button, "repeated", on_forward_button_longpress, window);
+    elm_object_tooltip_text_set(window->forward_button, "Click to go forward, longpress to see session history");
+    elm_object_tooltip_window_mode_set(window->forward_button, EINA_TRUE);
     elm_object_disabled_set(window->forward_button, EINA_TRUE);
     evas_object_size_hint_weight_set(window->forward_button, 0.0, EVAS_HINT_EXPAND);
     evas_object_size_hint_align_set(window->forward_button, 0.0, 0.5);
@@ -1993,6 +1997,8 @@ static Browser_Window *window_create(Evas_Object *opener, int width, int height)
     /* Create Refresh button */
     Evas_Object *refresh_button = create_toolbar_button(window->elm_window, "refresh");
     evas_object_smart_callback_add(refresh_button, "clicked", on_refresh_button_clicked, window);
+    elm_object_tooltip_text_set(refresh_button, "Reload page");
+    elm_object_tooltip_window_mode_set(refresh_button, EINA_TRUE);
     evas_object_size_hint_weight_set(refresh_button, 0.0, EVAS_HINT_EXPAND);
     evas_object_size_hint_align_set(refresh_button, 1.0, 0.5);
     elm_box_pack_end(horizontal_layout, refresh_button);
@@ -2001,6 +2007,8 @@ static Browser_Window *window_create(Evas_Object *opener, int width, int height)
     /* Create Stop button */
     Evas_Object *stop_button = create_toolbar_button(window->elm_window, "close");
     evas_object_smart_callback_add(stop_button, "clicked", on_stop_button_clicked, window);
+    elm_object_tooltip_text_set(stop_button, "Stop page load");
+    elm_object_tooltip_window_mode_set(stop_button, EINA_TRUE);
     evas_object_size_hint_weight_set(stop_button, 0.0, EVAS_HINT_EXPAND);
     evas_object_size_hint_align_set(stop_button, 1.0, 0.5);
     elm_box_pack_end(horizontal_layout, stop_button);
@@ -2009,6 +2017,8 @@ static Browser_Window *window_create(Evas_Object *opener, int width, int height)
     /* Create Home button */
     Evas_Object *home_button = create_toolbar_button(window->elm_window, "home");
     evas_object_smart_callback_add(home_button, "clicked", on_home_button_clicked, window);
+    elm_object_tooltip_text_set(home_button, "Home page");
+    elm_object_tooltip_window_mode_set(home_button, EINA_TRUE);
     evas_object_size_hint_weight_set(home_button, 0.0, EVAS_HINT_EXPAND);
     evas_object_size_hint_align_set(home_button, 1.0, 0.5);
     elm_box_pack_end(horizontal_layout, home_button);