[Geany-Devel] [PATCH geany-plugins 03/10] GeanyLaTeX: Fix GTK+3 support

Quentin Glidic sardemff7+geany at xxxxx
Fri Apr 5 06:58:22 UTC 2013


From: Quentin Glidic <sardemff7+git at sardemff7.net>

Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
---
 build/geanylatex.m4         | 1 -
 geanylatex/src/geanylatex.c | 8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/build/geanylatex.m4 b/build/geanylatex.m4
index 398a368..d110416 100644
--- a/build/geanylatex.m4
+++ b/build/geanylatex.m4
@@ -1,7 +1,6 @@
 AC_DEFUN([GP_CHECK_GEANYLATEX],
 [
     GP_ARG_DISABLE([GeanyLaTeX], [auto])
-    GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLaTeX])
     GP_COMMIT_PLUGIN_STATUS([GeanyLaTeX])
     AC_CONFIG_FILES([
         geanylatex/Makefile
diff --git a/geanylatex/src/geanylatex.c b/geanylatex/src/geanylatex.c
index 4666d93..f8d231a 100644
--- a/geanylatex/src/geanylatex.c
+++ b/geanylatex/src/geanylatex.c
@@ -2105,8 +2105,8 @@ add_menu_to_menubar(void)
 	{
 		/* Build up menu for menubar */
 		menu_latex = gtk_menu_item_new_with_mnemonic(_("_LaTeX"));
-		gtk_menu_shell_insert(
-			menubar, menu_latex, g_list_length(menubar->children)-1);
+		gtk_menu_shell_appeng(
+			menubar, menu_latex);
 
 		menu_latex_menu = gtk_menu_new();
 		gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_latex), menu_latex_menu);
@@ -2255,8 +2255,8 @@ add_menu_to_menubar(void)
 	if (menu_bibtex == NULL)
 	{
 		menu_bibtex = gtk_menu_item_new_with_mnemonic(_("_BibTeX"));
-		gtk_menu_shell_insert(
-			menubar, menu_bibtex, g_list_length(menubar->children)-1);
+		gtk_menu_shell_append(
+			menubar, menu_bibtex);
 
 		menu_bibtex_menu = gtk_menu_new();
 		gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_bibtex), menu_bibtex_menu);
-- 
1.8.2



More information about the Devel mailing list