[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-170-gccd8123

ticho at claws-mail.org ticho at claws-mail.org
Sat Apr 28 20:49:41 CEST 2018


The branch, gtk3 has been updated
       via  ccd8123f2f51703b01902a3faadc463891cdeb16 (commit)
      from  2e197d5e8ed39e2b1fb41eaa213c0e35e1f4c279 (commit)

Summary of changes:
 src/plugins/libravatar/libravatar_prefs.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit ccd8123f2f51703b01902a3faadc463891cdeb16
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Apr 28 20:49:18 2018 +0200

    Get rid of deprecated gtk_entry_new_with_max_length() function.

diff --git a/src/plugins/libravatar/libravatar_prefs.c b/src/plugins/libravatar/libravatar_prefs.c
index 160e30e..7f46d02 100644
--- a/src/plugins/libravatar/libravatar_prefs.c
+++ b/src/plugins/libravatar/libravatar_prefs.c
@@ -329,7 +329,8 @@ static GtkWidget *p_create_frame_missing(struct LibravatarPrefsPage *page)
 		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio[i]), enable);
 		if (i == CUSTOM_URL_BUTTON_INDEX) {
 			/* set related entry next to radio button */
-			entry = gtk_entry_new_with_max_length(MAX_URL_LENGTH);
+			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 "

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list