[geany/geany-plugins] 05218d: tableconvert: fixed deprecated gtk call for gtk3

LarsGit223 git-noreply at xxxxx
Mon May 13 19:00:18 UTC 2019


Branch:      refs/heads/master
Author:      LarsGit223 <lars_paulsen at web.de>
Committer:   LarsGit223 <lars_paulsen at web.de>
Date:        Mon, 13 May 2019 19:00:18 UTC
Commit:      05218d959bc77103a9010fdf981a3b17abdee5b2
             https://github.com/geany/geany-plugins/commit/05218d959bc77103a9010fdf981a3b17abdee5b2

Log Message:
-----------
tableconvert: fixed deprecated gtk call for gtk3


Modified Paths:
--------------
    tableconvert/src/tableconvert_ui.c

Modified: tableconvert/src/tableconvert_ui.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -49,7 +49,11 @@ void init_menuentries(void)
 	 * This is needed for e.g. different wiki-Syntax or differenz stiles
 	 * within a special file type */
 
+#if GTK_CHECK_VERSION(3, 10, 0)
+	menu_tableconvert = gtk_menu_item_new_with_mnemonic(_("_More TableConvert"));
+#else
 	menu_tableconvert = gtk_image_menu_item_new_with_mnemonic(_("_More TableConvert"));
+#endif
 	gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu), menu_tableconvert);
 
 	menu_tableconvert_menu = gtk_menu_new ();



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list