[Geany-Devel] [PATCH geany-plugins 4/5] GeanyPrj: Fix GTK+3 support

Quentin Glidic sardemff7+geany at xxxxx
Tue Jun 18 05:35:38 UTC 2013


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

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

diff --git a/build/geanyprj.m4 b/build/geanyprj.m4
index 4c11ab4..c733e3c 100644
--- a/build/geanyprj.m4
+++ b/build/geanyprj.m4
@@ -1,7 +1,6 @@
 AC_DEFUN([GP_CHECK_GEANYPRJ],
 [
     GP_ARG_DISABLE([GeanyPrj], [auto])
-    GP_CHECK_PLUGIN_GTK2_ONLY([GeanyPrj])
     GP_COMMIT_PLUGIN_STATUS([GeanyPrj])
     AC_CONFIG_FILES([
         geanyprj/Makefile
diff --git a/geanyprj/src/menu.c b/geanyprj/src/menu.c
index 42cc61e..8aaedb5 100644
--- a/geanyprj/src/menu.c
+++ b/geanyprj/src/menu.c
@@ -180,9 +180,9 @@ static PropertyDialogElements *build_properties_dialog(gboolean properties)
 	label = gtk_label_new(_("Type:"));
 	gtk_misc_set_alignment(GTK_MISC(label), 1, 0);
 
-	e->type = gtk_combo_box_new_text();
+	e->type = gtk_combo_box_text_new();
 	for (i = 0; i < NEW_PROJECT_TYPE_SIZE; i++)
-		gtk_combo_box_append_text(GTK_COMBO_BOX(e->type), project_type_string[i]);
+		gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(e->type), project_type_string[i]);
 	gtk_combo_box_set_active(GTK_COMBO_BOX(e->type), 0);
 
 	ui_table_add_row(GTK_TABLE(table), 4, label, e->type, NULL);
-- 
1.8.3



More information about the Devel mailing list