aboutsummaryrefslogtreecommitdiff
path: root/devel/anjuta
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2005-12-19 04:16:25 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2005-12-19 04:16:25 +0000
commit41fd191b1a171148e6fbd6a1489860cb904f24c5 (patch)
tree1a00732bc7ae109bd8453c8f0589df4b8f864561 /devel/anjuta
parent7354d85acfa3387e5ef87c798aa00bed210fe80a (diff)
downloadports-41fd191b1a171148e6fbd6a1489860cb904f24c5.tar.gz
ports-41fd191b1a171148e6fbd6a1489860cb904f24c5.zip
Fix a crash triggered by GTK+ 2.8.9.
Notes
Notes: svn path=/head/; revision=151534
Diffstat (limited to 'devel/anjuta')
-rw-r--r--devel/anjuta/Makefile2
-rw-r--r--devel/anjuta/files/patch-src_anjuta-encodings.c40
2 files changed, 41 insertions, 1 deletions
diff --git a/devel/anjuta/Makefile b/devel/anjuta/Makefile
index 851e106c7230..36761f2e117f 100644
--- a/devel/anjuta/Makefile
+++ b/devel/anjuta/Makefile
@@ -7,7 +7,7 @@
PORTNAME= anjuta
PORTVERSION= 1.2.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= anjuta
diff --git a/devel/anjuta/files/patch-src_anjuta-encodings.c b/devel/anjuta/files/patch-src_anjuta-encodings.c
new file mode 100644
index 000000000000..e86b8c915634
--- /dev/null
+++ b/devel/anjuta/files/patch-src_anjuta-encodings.c
@@ -0,0 +1,40 @@
+--- src/anjuta-encodings.c.orig 2005-12-15 18:50:55.000000000 +0100
++++ src/anjuta-encodings.c 2005-12-15 18:51:38.000000000 +0100
+@@ -707,15 +707,15 @@
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (stock_treeview),
+ COLUMN_ENCODING_NAME);
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (stock_treeview));
+ g_return_if_fail (selection != NULL);
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
+- g_signal_connect (G_OBJECT (selection), "changed",
+- G_CALLBACK (on_stock_selection_changed), NULL);
+
+ model = create_encodings_treeview_model ();
+ gtk_tree_view_set_model (GTK_TREE_VIEW (stock_treeview), model);
++ g_signal_connect (G_OBJECT (selection), "changed",
++ G_CALLBACK (on_stock_selection_changed), NULL);
+ g_object_unref (model);
+
+ /* Add the encoding column for supported treeview*/
+ cell = gtk_cell_renderer_text_new ();
+ column = gtk_tree_view_column_new_with_attributes (_("Supported Encodings"),
+@@ -726,17 +726,17 @@
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (supported_treeview),
+ COLUMN_ENCODING_NAME);
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (supported_treeview));
+ g_return_if_fail (selection != NULL);
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
+- g_signal_connect (G_OBJECT (selection), "changed",
+- G_CALLBACK (on_supported_selection_changed), NULL);
+
+ /* create list store */
+ model = GTK_TREE_MODEL (gtk_list_store_new (SUPPORTED_ENCODING_NUM_COLS,
+ G_TYPE_STRING, G_TYPE_POINTER));
+ gtk_tree_view_set_model (GTK_TREE_VIEW (supported_treeview), model);
++ g_signal_connect (G_OBJECT (selection), "changed",
++ G_CALLBACK (on_supported_selection_changed), NULL);
+ g_object_unref (model);
+
+ anjuta_preferences_register_property_custom (pref, supported_treeview,
+ SUPPORTED_ENCODINGS,
+ "ISO-8859-15",