[geany/geany-plugins] f9e2c3: Merge pull request #856 from LarsGit223/lipsum-gtk3

Frank Lanitz git-noreply at xxxxx
Tue May 14 14:57:53 UTC 2019


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Tue, 14 May 2019 14:57:53 UTC
Commit:      f9e2c3ca04901144db81c240ebad155c80e7806c
             https://github.com/geany/geany-plugins/commit/f9e2c3ca04901144db81c240ebad155c80e7806c

Log Message:
-----------
Merge pull request #856 from LarsGit223/lipsum-gtk3

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