From 50211f0b7ca249ed22b244a322e0f10fd46e7cd6 Mon Sep 17 00:00:00 2001 From: Yuni Jeong Date: Mon, 10 Sep 2012 18:20:34 +0900 Subject: [PATCH] Fixed the logic to apply default theme. [Title] Fixed the logic to apply default theme. [Issue#] N/A [Problem] Text selection handlers are not displayed. [Cause] Because text selection use fixed default theme path. - In spite of default theme change, text selection's default theme is not changed. [Solution] Fixed the logic to apply default theme Change-Id: I6923ba5521736ae76f44a626edad0c91da335e1e --- Source/WebKit2/UIProcess/API/efl/editor/TextSelection.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/API/efl/editor/TextSelection.cpp b/Source/WebKit2/UIProcess/API/efl/editor/TextSelection.cpp index dfcf25e..0112fb5 100755 --- a/Source/WebKit2/UIProcess/API/efl/editor/TextSelection.cpp +++ b/Source/WebKit2/UIProcess/API/efl/editor/TextSelection.cpp @@ -32,6 +32,7 @@ #include #include "NativeWebMouseEvent.h" +#include using namespace WebCore; @@ -47,7 +48,11 @@ TextSelection::TextSelection(Evas_Object* viewWidget, WebPageProxy* page, PageCl m_isTextSelectionEnable(true) { ASSERT(viewWidget); - static const String themePath = "/usr/share/elementary/themes/blue-hd.edj"; + + const Eina_List* themes = elm_theme_list_get(elm_object_theme_get(m_object)); + const char* theme = static_cast(eina_list_data_get(themes)); + String themePath = String::fromUTF8(elm_theme_list_item_path_get(theme, NULL)); + m_leftHandle = new TextSelectionHandle(m_object, themePath, "elm/entry/selection/block_handle_left", true, this); m_rightHandle = new TextSelectionHandle(m_object, themePath, "elm/entry/selection/block_handle_right", false, this); m_magnifier = new TextSelectionMagnifier(m_object, page, pageClient); -- 2.7.4