提交 72eb0911 编写于 作者: P pbansal

8214112: The whole text in target JPasswordField image are not selected

Reviewed-by: serb, psadhukhan
上级 e8644dcf
...@@ -2356,10 +2356,12 @@ static gint gtk3_get_color_for_state(JNIEnv *env, WidgetType widget_type, ...@@ -2356,10 +2356,12 @@ static gint gtk3_get_color_for_state(JNIEnv *env, WidgetType widget_type,
init_containers(); init_containers();
if (widget_type == TEXT_FIELD && state_type == GTK_STATE_SELECTED && if (gtk3_version_3_20) {
color_type == TEXT_BACKGROUND) { if ((widget_type == TEXT_FIELD || widget_type == PASSWORD_FIELD || widget_type == SPINNER_TEXT_FIELD ||
widget_type == FORMATTED_TEXT_FIELD) && state_type == GTK_STATE_SELECTED && color_type == TEXT_BACKGROUND) {
widget_type = TEXT_AREA; widget_type = TEXT_AREA;
} }
}
GtkStyleContext* context = NULL; GtkStyleContext* context = NULL;
if (widget_type == TOOL_TIP) { if (widget_type == TOOL_TIP) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册