mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
clients/: add lab-exit to display an exit window with labnag.
closes #917 Summary follows: - src/menu/menu.c: add `leave` action to call lab-exit. - clients/meson.build: add install routine for lab-exit and lab-sensible-terminal. - meson.build remove lab-sensible-terminal routine re the comment. - po/labwc.pot: rebuild with new xgettext commands. - po/it.po: add translations for lab-exit and edit my email. - CONTRIBUTING.md#translations: modify the instructions for coders as two xgettext commands are needed since we now have two GUI facing languages that have translatable strings.
This commit is contained in:
parent
2e9292b7a3
commit
ff45d1b363
7 changed files with 146 additions and 93 deletions
27
clients/lab-exit
Executable file
27
clients/lab-exit
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# logout with labnag
|
||||
|
||||
export TEXTDOMAIN=labwc
|
||||
export OUTPUT_CHARSET=UTF-8
|
||||
alias _='gettext'
|
||||
|
||||
QUESTION=$(_ 'Are you sure you want to quit Labwc?')
|
||||
YES=$(_ 'Yes')
|
||||
NO=$(_ 'No')
|
||||
|
||||
labnag \
|
||||
-f "mono 10"\
|
||||
-m "$QUESTION"\
|
||||
-Z " $YES " "labwc -e"\
|
||||
-Z " $NO "\
|
||||
--background 00ffff\
|
||||
--button-background 00ffff\
|
||||
--border 00ccccaa\
|
||||
--text 000000\
|
||||
--button-text 000000\
|
||||
--button-gap 8\
|
||||
--button-margin-right 0\
|
||||
--button-padding 5\
|
||||
--button-border-size 2\
|
||||
-t 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue