[Commits] [SCM] clawsker branch, master, updated. 1.3.8-5-g31e0b9e
mones at claws-mail.org
mones at claws-mail.org
Sat Aug 17 23:02:24 UTC 2024
The branch, master has been updated
via 31e0b9e688de669f0e44fdf35931b527ff219376 (commit)
from 512b73703f6d708ff4c6aa69590608fcc46add79 (commit)
Summary of changes:
clawsker | 13 +++++++++++++
1 file changed, 13 insertions(+)
- Log -----------------------------------------------------------------
commit 31e0b9e688de669f0e44fdf35931b527ff219376
Author: Ricardo Mones <ricardo at mones.org>
Date: Sun Aug 18 00:54:57 2024 +0200
Add a label when read-only is enabled
Although the “Apply” button is already disabled in this mode, it's too
easy to overlook its status (it happened to me!). A centered label in
the button area should make it more apparent.
diff --git a/clawsker b/clawsker
index 1229a09..c3bc6fe 100755
--- a/clawsker
+++ b/clawsker
@@ -3085,6 +3085,19 @@ sub new_button_box {
$hbox->pack_end ($b_exit, FALSE, FALSE, 0);
# $hbox->pack_end ($b_undo, FALSE, FALSE, 0);
$hbox->pack_start ($b_about, FALSE, FALSE, 0);
+ do {
+ my $l_rom = Gtk3::Label->new;
+ my $s_ctx = $l_rom->get_style_context;
+ my $color = $s_ctx->get_color ('normal');
+ my $bgcol = $s_ctx->get_property ('background-color', 'normal');
+ $l_rom->set_alignment (0.5, 0.5);
+ $l_rom->set_markup (
+ sprintf ('<span color="%s" background="%s"><b> ',
+ str_from_gdk_rgba($bgcol), str_from_gdk_rgba($color))
+ . _('Read-only mode') . ' </b></span>'
+ );
+ $hbox->pack_start ($l_rom, TRUE, FALSE, 0);
+ } if $READONLY;
#
return $hbox;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Hidden preferences editor for Claws Mail
More information about the Commits
mailing list