* 發布第2.10.1版;

* 修復在某些情況下構件提示異常的缺陷。
This commit is contained in:
gsm 2024-05-10 11:28:07 +08:00
parent bbc94ef219
commit 5e698f2f12
12 changed files with 23 additions and 14 deletions

View File

@ -9,6 +9,10 @@
* <http://www.gnu.org/licenses/>。
**************************************************************************/
2024年 05月 10日 星期五 11:18:01 HKT gsm <406643764@qq.com>
* 發布第2.10.1版;
* 修復在某些情況下構件提示異常的缺陷。
2024年 05月 08日 星期三 21:22:33 HKT gsm <406643764@qq.com>
* 發布第2.10.0版;
* 刪除切換顏色主題函數用GWM_MAIN_COLOR_NAME特性代替它

3
NEWS
View File

@ -9,6 +9,9 @@
* <http://www.gnu.org/licenses/>。
* ************************************************************************/
第2.10.1版:
* 修復在某些情況下構件提示異常的缺陷。
第2.10.0版:
* 刪除切換顏色主題功能用GWM_MAIN_COLOR_NAME特性代替它
* 使用界面自動配色算法代替人工配色。

5
TODO
View File

@ -9,8 +9,11 @@
* <http://www.gnu.org/licenses/>。
* ************************************************************************/
第2.10.1版的下一步的開發計劃:
* 把構件提示功能做成獨立構件。
第2.10.0版的下一步的開發計劃:
* 修复在某些情况下构件提示异常的缺陷。
* 修復在某些情況下構件提示異常的缺陷。
第2.9.2版的下一步的開發計劃:
* 實現界面自動配色功能。

View File

@ -12,7 +12,7 @@
./" program. Otherwise, see <http://www.gnu.org/licenses/>.
./" ************************************************* ***************************/
.TH gwm 1 May 2024 "gwm 2.10.0" gwm
.TH gwm 1 May 2024 "gwm 2.10.1" gwm
.
.SH NAME
.B

View File

@ -9,7 +9,7 @@
./" <http://www.gnu.org/licenses/>。
./" ************************************************************************/
.TH gwm 1 2024年5月 "gwm 2.10.0" gwm
.TH gwm 1 2024年5月 "gwm 2.10.1" gwm
.
.SH 名称
.B

View File

@ -9,7 +9,7 @@
./" <http://www.gnu.org/licenses/>。
./" ************************************************************************/
.TH gwm 1 2024年5月 "gwm 2.10.0" gwm
.TH gwm 1 2024年5月 "gwm 2.10.1" gwm
.
.SH 名稱
.B

View File

@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: gwm 2.10.0\n"
"Project-Id-Version: gwm 2.10.1\n"
"Report-Msgid-Bugs-To: 406643764@qq.com\n"
"POT-Creation-Date: 2024-05-08 22:01+0800\n"
"POT-Creation-Date: 2024-05-10 11:25+0800\n"
"PO-Revision-Date: 2023-05-05 11:26+0800\n"
"Last-Translator: gsm <406643764@qq.com>\n"
"Language-Team: English (British) <(nothing)>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: client.c:768
#: client.c:767
msgid "錯誤:查詢窗口清單失敗!"
msgstr "Error: Failed to query window list!"

View File

@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: gwm 2.10.0\n"
"Project-Id-Version: gwm 2.10.1\n"
"Report-Msgid-Bugs-To: 406643764@qq.com\n"
"POT-Creation-Date: 2024-05-08 22:01+0800\n"
"POT-Creation-Date: 2024-05-10 11:25+0800\n"
"PO-Revision-Date: 2023-05-05 09:56+0800\n"
"Last-Translator: gsm <406643764@qq.com>\n"
"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: client.c:768
#: client.c:767
msgid "錯誤:查詢窗口清單失敗!"
msgstr "错误:查询窗口列表失败!"

View File

@ -255,7 +255,6 @@ void create_titlebar(Client *c)
c->frame->title_area=create_widget(TITLE_AREA, UNUSED_TYPE, WIDGET_STATE(c),
WIDGET_WIN(c->frame), tr.x, tr.y, tr.w, tr.w);
set_widget_tooltip(WIDGET(c->frame->title_area), c->title_text);
c->frame->logo=create_button(TITLE_LOGO, WIDGET_STATE(c), WIDGET_WIN(c->frame),
0, 0, c->titlebar_h, c->titlebar_h, NULL);
set_widget_tooltip(WIDGET(c->frame->logo), cfg->tooltip[TITLE_LOGO]);

View File

@ -365,7 +365,6 @@ static void handle_enter_notify(WM *wm, XEvent *e)
static void handle_pointer_hover(WM *wm, const Widget *widget)
{
if(!widget->tooltip)
return;
@ -635,6 +634,7 @@ static void handle_wm_name_notify(WM *wm, Window win, Atom atom)
{
free_s(c->title_text);
c->title_text=copy_string(s);
set_widget_tooltip(WIDGET(c->frame->title_area), s);
update_title_area_fg(c);
}
free_s(s);

View File

@ -132,7 +132,7 @@ char *get_icon_title_text(Window win, const char *fallback)
return s;
if((s=get_wm_icon_name(win)) && strlen(s))
return s;
return copy_string(fallback);
return copy_string(get_title_text(win, fallback));
}
bool is_match_button_release(XEvent *oe, XEvent *ne)

View File

@ -156,7 +156,7 @@ static Cbutton *create_cbutton(Window parent, int x, int y, int w, int h, Window
cbutton->next=NULL;
set_cbutton_icon(cbutton);
set_widget_tooltip(WIDGET(cbutton), icon_title);
set_widget_tooltip(WIDGET(cbutton->button), icon_title);
free_s(icon_title);
return cbutton;