Skip to content

Commit

Permalink
added a button to clear gtk4 symlinks in one click
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Jan 18, 2025
1 parent b86e4e7 commit 2f2ed5a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"apply": "Apply",
"button": "Button",
"check-button": "Check button",
"clear": "Clear",
"close": "Close",
"color-scheme": "Color scheme",
"cursor-size": "Cursor size",
Expand Down
1 change: 1 addition & 0 deletions langs/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"apply": "適用",
"button": "ボタン",
"check-button": "チェックボタン",
"clear": "設定をクリア",
"close": "閉じる",
"color-scheme": "カラースキーマ",
"cursor-size": "カーソルサイズ",
Expand Down
1 change: 1 addition & 0 deletions langs/pl_PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"apply": "Zastosuj",
"button": "Przycisk",
"check-button": "Przycisk wyboru",
"clear": "Wyczyść",
"close": "Zamknij",
"color-scheme": "Schemat kolorów",
"cursor-size": "Rozmiar kursora",
Expand Down
1 change: 1 addition & 0 deletions langs/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"apply": "Применить",
"button": "Кнопка",
"check-button": "Чекбокс",
"clear": "Очистить",
"close": "Закрыть",
"color-scheme": "Цветовая схема",
"cursor-size": "Размер курсора",
Expand Down
1 change: 1 addition & 0 deletions langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"apply": "应用",
"button": "按钮",
"check-button": "复选按钮",
"clear": "清除设置",
"close": "关闭",
"color-scheme": "颜色方案",
"cursor-size": "光标大小",
Expand Down
4 changes: 4 additions & 0 deletions uicomponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,9 @@ func setUpProgramSettingsForm() *gtk.Frame {
})
g.Attach(cb5, 0, 5, 1, 1)

btn, _ := gtk.ButtonNewWithLabel(voc["clear"])
btn.Connect("clicked", clearGtk4Symlinks)
g.Attach(btn, 1, 5, 1, 1)

return frame
}

0 comments on commit 2f2ed5a

Please sign in to comment.