Changeset 147410 in webkit


Ignore:
Timestamp:
Apr 2, 2013 2:50:11 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Empty tooltip shown when hovering over popup menu items
https://bugs.webkit.org/show_bug.cgi?id=113382

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2013-04-02
Reviewed by Gyuyoung Kim.

Do not show the empty tooltip box if the text is null.

  • MiniBrowser/efl/main.c:

(popup_menu_populate):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r147401 r147410  
     12013-04-02  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
     2
     3        [EFL][WK2] Empty tooltip shown when hovering over popup menu items
     4        https://bugs.webkit.org/show_bug.cgi?id=113382
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Do not show the empty tooltip box if the text is null.
     9
     10        * MiniBrowser/efl/main.c:
     11        (popup_menu_populate):
     12
    1132013-04-02  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Tools/MiniBrowser/efl/main.c

    r146581 r147410  
    930930            } else {
    931931                Elm_Object_Item *item = elm_menu_item_add(elm_menu, NULL, NULL, ewk_popup_menu_item_text_get(ewk_item), on_popup_menu_item_clicked, user_data);
    932                 elm_object_item_tooltip_text_set(item, ewk_popup_menu_item_tooltip_get(ewk_item));
     932                const char *tooltip_text = ewk_popup_menu_item_tooltip_get(ewk_item);
     933                if (tooltip_text && tooltip_text[0] != '\0')
     934                    elm_object_item_tooltip_text_set(item, tooltip_text);
    933935                elm_object_item_disabled_set(item, !ewk_popup_menu_item_enabled_get(ewk_item));
    934936                elm_menu_item_selected_set(item, ewk_popup_menu_item_selected_get(ewk_item));
Note: See TracChangeset for help on using the changeset viewer.