[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-99-g8f2f7560f
mones at claws-mail.org
mones at claws-mail.org
Tue May 18 01:33:45 CEST 2021
The branch, gtk3 has been updated
via 8f2f7560fe453f690d1502d4d7870ba0bcff4456 (commit)
from f6269b6eb76e33668b9c3b0c37b72aacb37ec58c (commit)
Summary of changes:
src/plugins/libravatar/libravatar_prefs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 8f2f7560fe453f690d1502d4d7870ba0bcff4456
Author: Ricardo Mones <ricardo at mones.org>
Date: Tue May 18 01:30:36 2021 +0200
Libravatar: set max length after loading value
Based on fix for bug 4473, also delays gtk_widget_show() until
everything is set up.
diff --git a/src/plugins/libravatar/libravatar_prefs.c b/src/plugins/libravatar/libravatar_prefs.c
index 23b2993f1..2eb047b38 100644
--- a/src/plugins/libravatar/libravatar_prefs.c
+++ b/src/plugins/libravatar/libravatar_prefs.c
@@ -345,20 +345,20 @@ static GtkWidget *p_create_frame_missing(struct LibravatarPrefsPage *page)
if (i == CUSTOM_URL_BUTTON_INDEX) {
/* set related entry next to radio button */
entry = gtk_entry_new();
- gtk_entry_set_max_length(GTK_ENTRY(entry), MAX_URL_LENGTH);
CLAWS_SET_TIP(entry, _("Enter the URL you want to be "
"redirected when no user icon is available. "
"Leave an empty URL to use the default "
"libravatar orange icon."));
- gtk_widget_show(entry);
gtk_entry_set_text(GTK_ENTRY(entry),
libravatarprefs.default_mode_url);
+ gtk_entry_set_max_length(GTK_ENTRY(entry), MAX_URL_LENGTH);
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_pack_start(GTK_BOX(hbox), radio[i], FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0);
gtk_widget_set_sensitive(entry,
(libravatarprefs.default_mode == DEF_MODE_URL)
? TRUE: FALSE);
+ gtk_widget_show(entry);
page->defm_url_text = entry;
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
} else {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list