diff options
author | marcus <marcus@FreeBSD.org> | 2005-12-19 04:16:25 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-12-19 04:16:25 +0000 |
commit | f2a91204a0732521c13d10c2b258caf83f0bb4db (patch) | |
tree | 72e069d2354556774957bc31f0703e1f02b5cb44 /devel/anjuta | |
parent | 9141573aab5bbf4a617f665e4fbe4409662fdd7e (diff) | |
download | FreeBSD-ports-f2a91204a0732521c13d10c2b258caf83f0bb4db.zip FreeBSD-ports-f2a91204a0732521c13d10c2b258caf83f0bb4db.tar.gz |
Fix a crash triggered by GTK+ 2.8.9.
Obtained from: http://bugzilla.gnome.org/show_bug.cgi?id=323918
Diffstat (limited to 'devel/anjuta')
-rw-r--r-- | devel/anjuta/Makefile | 2 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src_anjuta-encodings.c | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/devel/anjuta/Makefile b/devel/anjuta/Makefile index 851e106..36761f2 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 0000000..e86b8c9 --- /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", |