[geany/geany-plugins] fa5347: lipsum: fixed deprecated gtk call for gtk3
LarsGit223
git-noreply at xxxxx
Mon May 13 17:13:31 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 17:13:31 UTC
Commit: fa53474dbc1cadbfa2832ef67519f84f2cfd3d93
https://github.com/geany/geany-plugins/commit/fa53474dbc1cadbfa2832ef67519f84f2cfd3d93
Log Message:
-----------
lipsum: fixed deprecated gtk call for gtk3
Modified Paths:
--------------
lipsum/src/lipsum.c
Modified: lipsum/src/lipsum.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -219,7 +219,11 @@ plugin_init(G_GNUC_UNUSED GeanyData *data)
g_free(config_file);
/* Building menu entry */
+#if GTK_CHECK_VERSION(3, 10, 0)
+ menu_lipsum = gtk_menu_item_new_with_mnemonic(_("_Lipsum..."));
+#else
menu_lipsum = gtk_image_menu_item_new_with_mnemonic(_("_Lipsum..."));
+#endif
gtk_widget_set_tooltip_text(menu_lipsum, _("Include Pseudotext to your code"));
gtk_widget_show(menu_lipsum);
g_signal_connect((gpointer) menu_lipsum, "activate",
--------------
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