Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
d15d3075
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d15d3075
编写于
6月 29, 2018
作者:
S
ssadetsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6260348: GTK+ L&F JTextComponent not respecting desktop caret blink rate
Reviewed-by: alexsch, azvegint
上级
837330c6
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
34 addition
and
20 deletion
+34
-20
src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java
src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java
+4
-2
src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
...e/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
+12
-2
src/solaris/native/sun/awt/gtk2_interface.c
src/solaris/native/sun/awt/gtk2_interface.c
+14
-14
src/solaris/native/sun/awt/gtk2_interface.h
src/solaris/native/sun/awt/gtk2_interface.h
+4
-2
未找到文件。
src/share/classes/com/sun/java/swing/plaf/gtk/GTKEngine.java
浏览文件 @
d15d3075
/*
* Copyright (c) 2005, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
15
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -93,7 +93,9 @@ class GTKEngine {
*/
static
enum
Settings
{
GTK_FONT_NAME
,
GTK_ICON_SIZES
GTK_ICON_SIZES
,
GTK_CURSOR_BLINK
,
GTK_CURSOR_BLINK_TIME
}
/* Custom regions are needed for representing regions that don't exist
...
...
src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
浏览文件 @
d15d3075
/*
* Copyright (c) 2002, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 201
5
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -371,7 +371,17 @@ public class GTKLookAndFeel extends SynthLookAndFeel {
int
vProgWidth
=
22
-
(
progXThickness
*
2
);
int
vProgHeight
=
80
-
(
progYThickness
*
2
);
Integer
caretBlinkRate
=
Integer
.
valueOf
(
500
);
Integer
caretBlinkRate
;
if
(
Boolean
.
FALSE
.
equals
(
GTKEngine
.
INSTANCE
.
getSetting
(
GTKEngine
.
Settings
.
GTK_CURSOR_BLINK
)))
{
caretBlinkRate
=
Integer
.
valueOf
(
0
);
}
else
{
caretBlinkRate
=
(
Integer
)
GTKEngine
.
INSTANCE
.
getSetting
(
GTKEngine
.
Settings
.
GTK_CURSOR_BLINK_TIME
);
if
(
caretBlinkRate
==
null
)
{
caretBlinkRate
=
Integer
.
valueOf
(
500
);
}
}
Insets
zeroInsets
=
new
InsetsUIResource
(
0
,
0
,
0
,
0
);
Double
defaultCaretAspectRatio
=
new
Double
(
0.025
);
...
...
src/solaris/native/sun/awt/gtk2_interface.c
浏览文件 @
d15d3075
...
...
@@ -1308,9 +1308,6 @@ static GtkWidget *gtk2_get_widget(WidgetType widget_type)
{
result
=
gtk2_widgets
[
_GTK_COMBO_BOX_TEXT_FIELD_TYPE
]
=
(
*
fp_gtk_entry_new
)();
GtkSettings
*
settings
=
fp_gtk_widget_get_settings
(
result
);
fp_g_object_set
(
settings
,
"gtk-cursor-blink"
,
FALSE
,
NULL
);
}
result
=
gtk2_widgets
[
_GTK_COMBO_BOX_TEXT_FIELD_TYPE
];
break
;
...
...
@@ -1355,10 +1352,6 @@ static GtkWidget *gtk2_get_widget(WidgetType widget_type)
{
gtk2_widgets
[
_GTK_ENTRY_TYPE
]
=
(
*
fp_gtk_entry_new
)();
GtkSettings
*
settings
=
fp_gtk_widget_get_settings
(
gtk2_widgets
[
_GTK_ENTRY_TYPE
]);
fp_g_object_set
(
settings
,
"gtk-cursor-blink"
,
FALSE
,
NULL
);
}
result
=
gtk2_widgets
[
_GTK_ENTRY_TYPE
];
break
;
...
...
@@ -1550,9 +1543,6 @@ static GtkWidget *gtk2_get_widget(WidgetType widget_type)
{
result
=
gtk2_widgets
[
_GTK_SPIN_BUTTON_TYPE
]
=
(
*
fp_gtk_spin_button_new
)(
NULL
,
0
,
0
);
GtkSettings
*
settings
=
fp_gtk_widget_get_settings
(
result
);
fp_g_object_set
(
settings
,
"gtk-cursor-blink"
,
FALSE
,
NULL
);
}
result
=
gtk2_widgets
[
_GTK_SPIN_BUTTON_TYPE
];
break
;
...
...
@@ -2502,14 +2492,20 @@ jobject get_string_property(JNIEnv *env, GtkSettings* settings, const gchar* key
return
result
;
}
/*
jobject
get_integer_property
(
JNIEnv
*
env
,
GtkSettings
*
settings
,
const
gchar
*
key
)
{
gint
intval
=
NULL
;
(
*
fp_g_object_get
)(
settings
,
key
,
&
intval
,
NULL
);
return
create_Integer
(
env
,
intval
);
}*/
}
jobject
get_boolean_property
(
JNIEnv
*
env
,
GtkSettings
*
settings
,
const
gchar
*
key
)
{
gint
intval
=
NULL
;
(
*
fp_g_object_get
)(
settings
,
key
,
&
intval
,
NULL
);
return
create_Boolean
(
env
,
intval
);
}
jobject
gtk2_get_setting
(
JNIEnv
*
env
,
Setting
property
)
{
...
...
@@ -2521,6 +2517,10 @@ jobject gtk2_get_setting(JNIEnv *env, Setting property)
return
get_string_property
(
env
,
settings
,
"gtk-font-name"
);
case
GTK_ICON_SIZES
:
return
get_string_property
(
env
,
settings
,
"gtk-icon-sizes"
);
case
GTK_CURSOR_BLINK
:
return
get_boolean_property
(
env
,
settings
,
"gtk-cursor-blink"
);
case
GTK_CURSOR_BLINK_TIME
:
return
get_integer_property
(
env
,
settings
,
"gtk-cursor-blink-time"
);
}
return
NULL
;
...
...
src/solaris/native/sun/awt/gtk2_interface.h
浏览文件 @
d15d3075
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
5
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -140,7 +140,9 @@ typedef enum _ColorType
typedef
enum
_Setting
{
GTK_FONT_NAME
,
GTK_ICON_SIZES
GTK_ICON_SIZES
,
GTK_CURSOR_BLINK
,
GTK_CURSOR_BLINK_TIME
}
Setting
;
/* GTK types, here to eliminate need for GTK headers at compile time */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录