summaryrefslogtreecommitdiffstats
path: root/devel/anjuta/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/anjuta/files')
-rw-r--r--devel/anjuta/files/patch-Makefile.in12
-rw-r--r--devel/anjuta/files/patch-data::Makefile.in11
-rw-r--r--devel/anjuta/files/patch-doc::Makefile.in10
-rw-r--r--devel/anjuta/files/patch-global-tags_create_global_tags.sh23
-rw-r--r--devel/anjuta/files/patch-libanjuta_anjuta-launcher.c80
-rw-r--r--devel/anjuta/files/patch-plugins_document-manager_anjuta-docman.c63
-rw-r--r--devel/anjuta/files/patch-plugins_glade_pluginc.c113
-rw-r--r--devel/anjuta/files/patch-src::launcher.c14
-rw-r--r--devel/anjuta/files/patch-src_anjuta-encodings.c40
-rw-r--r--devel/anjuta/files/patch-src_commands.c10
-rw-r--r--devel/anjuta/files/patch-src_executer.c20
-rw-r--r--devel/anjuta/files/patch-src_getline.c173
12 files changed, 290 insertions, 279 deletions
diff --git a/devel/anjuta/files/patch-Makefile.in b/devel/anjuta/files/patch-Makefile.in
index 1b5fe700a..2aaa034b9 100644
--- a/devel/anjuta/files/patch-Makefile.in
+++ b/devel/anjuta/files/patch-Makefile.in
@@ -1,11 +1,11 @@
---- Makefile.in.orig Wed Aug 17 02:27:09 2005
-+++ Makefile.in Wed Aug 17 02:27:33 2005
-@@ -395,14 +395,14 @@
- rm -f "$(DESTDIR)$(anjuta_glade_filedir)/$$f"; \
+--- Makefile.in.orig Sat Jul 7 20:39:34 2007
++++ Makefile.in Sat Jul 7 20:40:39 2007
+@@ -493,14 +493,14 @@ uninstall-anjuta_dataDATA:
+ rm -f "$(DESTDIR)$(anjuta_datadir)/$$f"; \
done
install-anjutadocDATA: $(anjutadoc_DATA)
- @$(NORMAL_INSTALL)
-- test -z "$(anjutadocdir)" || $(mkdir_p) "$(DESTDIR)$(anjutadocdir)"
+- test -z "$(anjutadocdir)" || $(MKDIR_P) "$(DESTDIR)$(anjutadocdir)"
- @list='$(anjutadoc_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
@@ -13,7 +13,7 @@
- $(anjutadocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjutadocdir)/$$f"; \
- done
+# @$(NORMAL_INSTALL)
-+# test -z "$(anjutadocdir)" || $(mkdir_p) "$(DESTDIR)$(anjutadocdir)"
++# test -z "$(anjutadocdir)" || $(MKDIR_P) "$(DESTDIR)$(anjutadocdir)"
+# @list='$(anjutadoc_DATA)'; for p in $$list; do \
+# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+# f=$(am__strip_dir) \
diff --git a/devel/anjuta/files/patch-data::Makefile.in b/devel/anjuta/files/patch-data::Makefile.in
deleted file mode 100644
index f972fd53c..000000000
--- a/devel/anjuta/files/patch-data::Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- data/Makefile.in.orig Sun May 6 14:54:32 2007
-+++ data/Makefile.in Sun May 6 14:54:32 2007
-@@ -273,7 +273,7 @@ anjuta_data_DATA = \
- anjuta_mimedir = $(prefix)/share/mime-info
- anjuta_mime_DATA = anjuta.mime
- anjuta_mimelnkdir = $(prefix)/share/mimelnk/application
--anjuta_mimelnk_DATA = x-anjuta-project.desktop
-+anjuta_mimelnk_DATA =
- EXTRA_DIST = $(anjuta_data_DATA) $(anjuta_mime_DATA) $(anjuta_mimelnk_DATA)
- all: all-recursive
-
diff --git a/devel/anjuta/files/patch-doc::Makefile.in b/devel/anjuta/files/patch-doc::Makefile.in
index 525553c21..5f8d4d6ca 100644
--- a/devel/anjuta/files/patch-doc::Makefile.in
+++ b/devel/anjuta/files/patch-doc::Makefile.in
@@ -1,11 +1,11 @@
---- doc/Makefile.in.orig Wed Aug 17 02:31:26 2005
-+++ doc/Makefile.in Wed Aug 17 02:31:56 2005
-@@ -352,14 +352,14 @@
+--- doc/Makefile.in.orig Sat Jul 7 20:41:01 2007
++++ doc/Makefile.in Sat Jul 7 20:41:29 2007
+@@ -433,14 +433,14 @@ uninstall-man1:
rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
done
install-anjuta_docDATA: $(anjuta_doc_DATA)
- @$(NORMAL_INSTALL)
-- test -z "$(anjuta_docdir)" || $(mkdir_p) "$(DESTDIR)$(anjuta_docdir)"
+- test -z "$(anjuta_docdir)" || $(MKDIR_P) "$(DESTDIR)$(anjuta_docdir)"
- @list='$(anjuta_doc_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
@@ -13,7 +13,7 @@
- $(anjuta_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjuta_docdir)/$$f"; \
- done
+# @$(NORMAL_INSTALL)
-+# test -z "$(anjuta_docdir)" || $(mkdir_p) "$(DESTDIR)$(anjuta_docdir)"
++# test -z "$(anjuta_docdir)" || $(MKDIR_P) "$(DESTDIR)$(anjuta_docdir)"
+# @list='$(anjuta_doc_DATA)'; for p in $$list; do \
+# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+# f=$(am__strip_dir) \
diff --git a/devel/anjuta/files/patch-global-tags_create_global_tags.sh b/devel/anjuta/files/patch-global-tags_create_global_tags.sh
new file mode 100644
index 000000000..206e390c2
--- /dev/null
+++ b/devel/anjuta/files/patch-global-tags_create_global_tags.sh
@@ -0,0 +1,23 @@
+--- global-tags/create_global_tags.sh.orig Sun Jul 8 03:39:26 2007
++++ global-tags/create_global_tags.sh Sun Jul 8 03:41:12 2007
+@@ -68,9 +68,9 @@ if ( [ ! -z $PKG_CONFIG ] && [ -x $PKG_C
+ ## the packages, which we don't like. We only want cflags relevent
+ ## to the packages alone.
+ ##
+- PKG_DEFAULT_CONFIG_PATH=`echo $PKG_CONFIG | sed -e 's/\/bin\/pkg-config/\/lib\/pkgconfig'/`
++ PKG_DEFAULT_CONFIG_PATH=`echo $PKG_CONFIG | sed -e 's/\/bin\/pkg-config/\/libdata\/pkgconfig'/`
+ PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PKG_DEFAULT_CONFIG_PATH"
+- PKG_DEFAULT_CONFIG_PATH=`echo $PKG_CONFIG | sed -e 's/\/bin\/pkg-config/\/lib64\/pkgconfig'/`
++ PKG_DEFAULT_CONFIG_PATH=`echo $PKG_CONFIG | sed -e 's/\/bin\/pkg-config/\/lib\/pkgconfig'/`
+ PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PKG_DEFAULT_CONFIG_PATH"
+
+ PKG_CONFIG_PATH_PROPER=`echo $PKG_CONFIG_PATH | sed -e 's/\:/ /g'`
+@@ -88,7 +88,7 @@ if ( [ ! -z $PKG_CONFIG ] && [ -x $PKG_C
+ for pkg_path in $PKG_CONFIG_PATH_PROPER; do
+ for pkg_file in `find "$pkg_path" -name '*.pc' 2>/dev/null`; do
+ # echo "Scanning package: $pkg_file"
+- PKG_CFLAGS=`grep -e '^\(\w\+=\|\s*Cflags:\)' "$pkg_file"|sed -e 's/Cflags:\s*"\?\(.*\)"\?\s*/echo "\1"/' -e 's/^\(\w\+\)=\("\([^"]*\)"\|\(.*\)\)/\1="\3\4"/'|sh`
++ PKG_CFLAGS=`grep -E -e '^([a-zA-Z0-9_]+=|[[:space:]]*Cflags:)' "$pkg_file"|sed -E -e 's/Cflags:[[:space:]]*"?(.*)"?[[:space:]]*/echo "\1"/' -e 's/^([a-zA-Z0-9_]+)=("([^"]*)"|(.*))/\1="\3\4"/'|sh`
+ # echo $PKG_CFLAGS
+ package=`basename "$pkg_file" '.pc'`
+ # if [ ! -e $BASEDIR/tags/$package.anjutatags.gz ] ; then
diff --git a/devel/anjuta/files/patch-libanjuta_anjuta-launcher.c b/devel/anjuta/files/patch-libanjuta_anjuta-launcher.c
new file mode 100644
index 000000000..73987d782
--- /dev/null
+++ b/devel/anjuta/files/patch-libanjuta_anjuta-launcher.c
@@ -0,0 +1,80 @@
+--- libanjuta/anjuta-launcher.c.orig Mon Jun 11 13:22:08 2007
++++ libanjuta/anjuta-launcher.c Sun Jul 8 03:39:07 2007
+@@ -37,7 +37,7 @@
+ #include <signal.h>
+
+ #if !defined(__sun) && !defined(__NetBSD__)
+-# ifndef FREEBSD
++# if !defined(__FreeBSD__)
+ # include <pty.h>
+ # else
+ # include <libutil.h>
+@@ -713,7 +713,8 @@ anjuta_launcher_scan_output (GIOChannel
+ GError *err = NULL;
+ do
+ {
+- g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
++ GIOStatus status;
++ status = g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
+ if (n > 0 && !err) /* There is output */
+ {
+ gchar *utf8_chars;
+@@ -733,6 +734,13 @@ anjuta_launcher_scan_output (GIOChannel
+ anjuta_launcher_synchronize (launcher);
+ ret = FALSE;
+ }
++ else if (status == G_IO_STATUS_EOF)
++ {
++ launcher->priv->stdout_is_done = TRUE;
++ anjuta_launcher_synchronize (launcher);
++ ret = FALSE;
++ }
++
+ /* Read next chars if buffer was too small
+ * (the maximum length of one character is 6 bytes) */
+ } while (!err && (n > FILE_BUFFER_SIZE - 7));
+@@ -762,7 +770,8 @@ anjuta_launcher_scan_error (GIOChannel *
+ GError *err = NULL;
+ do
+ {
+- g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
++ GIOStatus status;
++ status = g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
+ if (n > 0 && !err) /* There is stderr output */
+ {
+ gchar *utf8_chars;
+@@ -782,6 +791,13 @@ anjuta_launcher_scan_error (GIOChannel *
+ anjuta_launcher_synchronize (launcher);
+ ret = FALSE;
+ }
++ else if (status == G_IO_STATUS_EOF)
++ {
++ launcher->priv->stderr_is_done = TRUE;
++ anjuta_launcher_synchronize (launcher);
++ ret = FALSE;
++ }
++
+ /* Read next chars if buffer was too small
+ * (the maximum length of one character is 6 bytes) */
+ } while (!err && (n > FILE_BUFFER_SIZE - 7));
+@@ -811,7 +827,8 @@ anjuta_launcher_scan_pty (GIOChannel *ch
+ GError *err = NULL;
+ do
+ {
+- g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
++ GIOStatus status;
++ status = g_io_channel_read_chars (channel, buffer, FILE_BUFFER_SIZE-1, &n, &err);
+ if (n > 0 && !err) /* There is stderr output */
+ {
+ gchar *utf8_chars;
+@@ -833,6 +850,10 @@ anjuta_launcher_scan_pty (GIOChannel *ch
+ else if (err && errno != EAGAIN && errno != EINTR)
+ {
+ g_warning (_("launcher.c: Error while reading child pty\n"));
++ ret = FALSE;
++ }
++ else if (status == G_IO_STATUS_EOF)
++ {
+ ret = FALSE;
+ }
+ /* Read next chars if buffer was too small
diff --git a/devel/anjuta/files/patch-plugins_document-manager_anjuta-docman.c b/devel/anjuta/files/patch-plugins_document-manager_anjuta-docman.c
new file mode 100644
index 000000000..ab81e8f05
--- /dev/null
+++ b/devel/anjuta/files/patch-plugins_document-manager_anjuta-docman.c
@@ -0,0 +1,63 @@
+--- plugins/document-manager/anjuta-docman.c.orig Sun Jul 8 03:12:10 2007
++++ plugins/document-manager/anjuta-docman.c Sun Jul 8 03:20:22 2007
+@@ -902,6 +902,7 @@ anjuta_docman_goto_file_line_mark (Anjut
+ const gchar *linenum;
+ glong lineno;
+ gboolean is_local_uri;
++ gchar normalized_path_buf[PATH_MAX];
+ gchar *normalized_path = NULL;
+
+ IAnjutaEditor *te;
+@@ -926,9 +927,9 @@ anjuta_docman_goto_file_line_mark (Anjut
+ /* Get the normalized file path for comparision */
+ is_local_uri = gnome_vfs_uri_is_local (vfs_uri);
+ if (is_local_uri)
+- normalized_path = realpath (gnome_vfs_uri_get_path (vfs_uri), NULL);
++ normalized_path = realpath (gnome_vfs_uri_get_path (vfs_uri), normalized_path_buf);
+ if (normalized_path == NULL)
+- normalized_path = g_strdup (uri);
++ (void) strlcpy (normalized_path, uri, PATH_MAX);
+
+ gnome_vfs_uri_unref (vfs_uri);
+ /* g_free(filename); */
+@@ -942,6 +943,7 @@ anjuta_docman_goto_file_line_mark (Anjut
+ AnjutaDocmanPage *page;
+ gboolean te_is_local_uri;
+ gchar *te_uri;
++ char te_normalized_path_buf[PATH_MAX];
+ gchar *te_normalized_path = NULL;
+
+ page = (AnjutaDocmanPage *) node->data;
+@@ -959,9 +961,9 @@ anjuta_docman_goto_file_line_mark (Anjut
+ te_is_local_uri = gnome_vfs_uri_is_local (vfs_uri);
+ if (te_is_local_uri)
+ te_normalized_path = realpath (gnome_vfs_uri_get_path (vfs_uri),
+- NULL);
++ te_normalized_path_buf);
+ if (te_normalized_path == NULL)
+- te_normalized_path = g_strdup (te_uri);
++ (void) strlcpy (te_normalized_path, te_uri, PATH_MAX);
+ gnome_vfs_uri_unref (vfs_uri);
+
+ if (strcmp (normalized_path, te_normalized_path) == 0)
+@@ -982,12 +984,9 @@ anjuta_docman_goto_file_line_mark (Anjut
+ an_file_history_push (te_uri, lineno);
+ g_free (uri);
+ g_free (te_uri);
+- g_free (normalized_path);
+- g_free (te_normalized_path);
+ return te;
+ }
+ g_free (te_uri);
+- g_free (te_normalized_path);
+ node = g_list_next (node);
+ }
+ te = anjuta_docman_add_editor (docman, uri, NULL);
+@@ -1006,7 +1005,6 @@ anjuta_docman_goto_file_line_mark (Anjut
+ }
+ }
+ g_free (uri);
+- g_free (normalized_path);
+ return te ;
+ }
+
diff --git a/devel/anjuta/files/patch-plugins_glade_pluginc.c b/devel/anjuta/files/patch-plugins_glade_pluginc.c
new file mode 100644
index 000000000..569bafe71
--- /dev/null
+++ b/devel/anjuta/files/patch-plugins_glade_pluginc.c
@@ -0,0 +1,113 @@
+--- plugins/glade/plugin.c 2007/06/20 02:18:37 3013
++++ plugins/glade/plugin.c 2007/07/07 13:25:08 3048
+@@ -20,7 +20,7 @@
+
+ #include <config.h>
+
+-#if (GLADEUI_VERSION <= 302)
++#if (GLADEUI_VERSION <= 303)
+ # include <glade.h>
+ #else
+ # if (GLADEUI_VERSION <= 314)
+@@ -54,7 +54,7 @@
+ GtkActionGroup *action_group;
+ GladeApp *gpw;
+ GtkWidget *inspector;
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_notebook;
+ #endif
+ GtkWidget *view_box;
+@@ -428,7 +428,7 @@
+ static void
+ glade_do_close (GladePlugin *plugin, GladeProject *project)
+ {
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_view;
+
+ design_view = g_object_get_data (G_OBJECT (project), "design_view");
+@@ -459,7 +459,11 @@
+ }
+
+ #if (GLADEUI_VERSION >= 330)
+- if (glade_project_get_has_unsaved_changes (project))
++# if (GLADEUI_VERSION > 331)
++ if (glade_project_get_modified (project))
++# else
++ if (glade_project_get_has_unsaved_changes (project))
++# endif
+ #else
+ if (project->changed)
+ #endif
+@@ -502,14 +506,14 @@
+ {
+ GladeProject *project;
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_view;
+ gint design_pagenum;
+ #endif
+ gtk_tree_model_get (model, &iter, PROJECT_COL, &project, -1);
+ glade_app_set_project (project);
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ design_view = g_object_get_data (G_OBJECT (project), "design_view");
+ design_pagenum = gtk_notebook_page_num (GTK_NOTEBOOK (plugin->priv->design_notebook),
+ design_view);
+@@ -713,7 +717,7 @@
+ gtk_container_remove (GTK_CONTAINER (parent), wid);
+ }
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ static void
+ glade_plugin_add_project (GladePlugin *glade_plugin, GladeProject *project)
+ {
+@@ -796,7 +800,7 @@
+ g_object_unref (G_OBJECT (store));
+ gtk_box_pack_start (GTK_BOX (priv->view_box), priv->projects_combo,
+ FALSE, FALSE, 0);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ # if (GLADEUI_VERSION >= 330)
+ priv->inspector = glade_inspector_new ();
+
+@@ -825,7 +829,7 @@
+ gtk_notebook_popup_enable (GTK_NOTEBOOK (glade_app_get_editor ()->notebook));
+
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ /* Create design_notebook */
+ priv->design_notebook = gtk_notebook_new ();
+ gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->design_notebook), FALSE);
+@@ -862,7 +866,7 @@
+ g_object_ref (glade_app_get_palette ());
+ g_object_ref (glade_app_get_editor ());
+ g_object_ref (priv->view_box);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ g_object_ref (priv->design_notebook);
+ #endif
+ gtk_widget_show (GTK_WIDGET (glade_app_get_palette ()));
+@@ -884,7 +888,7 @@
+ "AnjutaGladeEditor", _("Properties"),
+ "glade-plugin-icon",
+ ANJUTA_SHELL_PLACEMENT_CENTER, NULL);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ anjuta_shell_add_widget (ANJUTA_PLUGIN (plugin)->shell,
+ GTK_WIDGET (priv->design_notebook),
+ "AnjutaGladeDesigner", _("Designer"),
+@@ -935,7 +939,7 @@
+ anjuta_shell_remove_widget (plugin->shell,
+ GTK_WIDGET (priv->view_box),
+ NULL);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ anjuta_shell_remove_widget (plugin->shell,
+ GTK_WIDGET (priv->design_notebook),
+ NULL);
diff --git a/devel/anjuta/files/patch-src::launcher.c b/devel/anjuta/files/patch-src::launcher.c
deleted file mode 100644
index 5783dc99e..000000000
--- a/devel/anjuta/files/patch-src::launcher.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/launcher.c.orig Sun Apr 24 09:28:02 2005
-+++ src/launcher.c Wed Aug 17 02:33:34 2005
-@@ -1130,9 +1130,9 @@ anjuta_launcher_fork (AnjutaLauncher *la
- /* Set no delays for the write pipes (non_buffered) so
- that we get all the outputs immidiately */
- if ((md = fcntl (stdout_pipe[1], F_GETFL)) != -1)
-- fcntl (stdout_pipe[1], F_SETFL, O_SYNC | md);
-+ fcntl (stdout_pipe[1], F_SETFL, O_FSYNC | md);
- if ((md = fcntl (stderr_pipe[1], F_GETFL)) != -1)
-- fcntl (stderr_pipe[1], F_SETFL, O_SYNC | md);
-+ fcntl (stderr_pipe[1], F_SETFL, O_FSYNC | md);
-
- execvp (args[0], args);
- g_warning (_("Cannot execute command: \"%s\""), args[0]);
diff --git a/devel/anjuta/files/patch-src_anjuta-encodings.c b/devel/anjuta/files/patch-src_anjuta-encodings.c
deleted file mode 100644
index e86b8c915..000000000
--- a/devel/anjuta/files/patch-src_anjuta-encodings.c
+++ /dev/null
@@ -1,40 +0,0 @@
---- 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",
diff --git a/devel/anjuta/files/patch-src_commands.c b/devel/anjuta/files/patch-src_commands.c
deleted file mode 100644
index 89e481307..000000000
--- a/devel/anjuta/files/patch-src_commands.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/commands.c.orig Tue Aug 31 00:41:32 2004
-+++ src/commands.c Tue Aug 31 00:41:56 2004
-@@ -102,6 +102,7 @@
- /* Ditto */
- static gchar *
- term_commands[] = {
-+ "gnome-terminal -e '$(anjuta.current.command)'",
- "gnome-terminal -e \"$(anjuta.current.command)\"",
- "gnome-terminal -x sh -c \"$(anjuta.current.command)\"",
- "gnome-terminal --command=\"sh -c \\\"$(anjuta.current.command); read x\\\"\"",
diff --git a/devel/anjuta/files/patch-src_executer.c b/devel/anjuta/files/patch-src_executer.c
deleted file mode 100644
index dd5907d73..000000000
--- a/devel/anjuta/files/patch-src_executer.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/executer.c.orig Tue Aug 31 00:40:58 2004
-+++ src/executer.c Tue Aug 31 00:41:25 2004
-@@ -154,7 +154,7 @@
- if(e->terminal)
- {
- gchar* escaped_cmd;
-- escaped_cmd = anjuta_util_escape_quotes(command);
-+ escaped_cmd = command;
- prop_set_with_key (e->props, "anjuta.current.command", escaped_cmd);
-
- #ifdef DEBUG
-@@ -162,7 +162,7 @@
- #endif
-
- cmd = command_editor_get_command (app->command_editor, COMMAND_TERMINAL);
-- g_free(escaped_cmd);
-+ /*g_free(escaped_cmd);*/
- }
- else
- {
diff --git a/devel/anjuta/files/patch-src_getline.c b/devel/anjuta/files/patch-src_getline.c
deleted file mode 100644
index d72401d3e..000000000
--- a/devel/anjuta/files/patch-src_getline.c
+++ /dev/null
@@ -1,173 +0,0 @@
---- src/getline.c.orig Sun Aug 21 02:07:44 2005
-+++ src/getline.c Sun Aug 21 02:23:37 2005
-@@ -1,70 +1,112 @@
--/*
-- * getline.c Copyright (C) 2003 Alexander Nedotsukov
-- *
-- * This program is free software; you can redistribute it and/or modify it
-- * under the terms of the GNU General Public License as published by the Free
-- * Software Foundation; either version 2 of the License, or (at your option)
-- * any later version.
-- *
-- * This program is distributed in the hope that it will be useful, but
-- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-- * for more details.
-- * You should have received a copy of the GNU General Public License along
-- * with this program; if not, write to the Free Software Foundation, Inc., 59
-- * Temple Place, Suite 330, Boston, MA 02111-1307 USA
-- */
-+#include "config.h"
-
--#include <config.h>
--
--// #ifdef FREEBSD
- #ifndef HAVE_GETLINE
-
-+#undef _GNU_SOURCE
-+
-+#include <sys/types.h>
- #include <stdio.h>
--#include <string.h>
--#include <stdlib.h>
--#include <errno.h>
-
--/* GNU libc getline() compatibility */
-+#ifdef HAVE_STRINGS_H
-+# include <strings.h>
-+#else
-+# include <string.h>
-+#endif /* HAVE_STRINGS_H */
-+
-+#ifdef HAVE_STDLIB_H
-+# include <stdlib.h>
-+#endif /* HAVE_STDLIB_H */
-+
-+#ifdef HAVE_UNISTD_H
-+# include <unistd.h>
-+#endif /* HAVE_UNISTD_H */
-+
-+#include <limits.h>
-+#include <errno.h>
-
--int
--getline(char** line, size_t* size, FILE* fp)
-+/* Read up to (and including) a '\n' from STREAM into *LINEPTR
-+ (and null-terminate it). *LINEPTR is a pointer returned from malloc (or
-+ NULL), pointing to *N characters of space. It is realloc'd as
-+ necessary. Returns the number of characters read (not including the
-+ null terminator), or -1 on error or EOF. */
-+
-+size_t
-+getline (lineptr, n, stream)
-+ char **lineptr;
-+ size_t *n;
-+ FILE *stream;
- {
-- static const size_t line_grow_by = 80; /* in most texts line fits console */
-- int ch;
-- size_t i;
--
-- if (line == NULL || size == NULL || fp == NULL) { /* illegal call */
-- errno = EINVAL;
-- return -1;
-- }
-- if (*line == NULL && *size) { /* logically incorrect */
-- errno = EINVAL;
-- return -1;
-- }
-+ char *line, *p;
-+ long size, copy;
-
-- i = 0;
-- while (1) {
-- ch = fgetc(fp);
-- if (ch == EOF)
-- break;
-- /* ensure bufer still large enough for ch and trailing null */
-- if ((*size - i) <= 1) {
-- *line = (char*)realloc(*line, *size += line_grow_by);
-- if (*line == NULL) {
-- errno = ENOMEM;
-- return -1;
-- }
-- }
-- *(*line + i++) = (char)ch;
-- if (ch == '\n')
-- break;
-+ if (lineptr == NULL || n == NULL)
-+ {
-+ errno = EINVAL;
-+ return (size_t) -1;
-+ }
-+
-+ if (ferror (stream))
-+ return (size_t) -1;
-+
-+ /* Make sure we have a line buffer to start with. */
-+ if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */
-+ {
-+#ifndef MAX_CANON
-+#define MAX_CANON 256
-+#endif
-+ if (!*lineptr)
-+ line = (char *) malloc (MAX_CANON);
-+ else
-+ line = (char *) realloc (*lineptr, MAX_CANON);
-+ if (line == NULL)
-+ return (size_t) -1;
-+ *lineptr = line;
-+ *n = MAX_CANON;
-+ }
-+
-+ line = *lineptr;
-+ size = *n;
-+
-+ copy = size;
-+ p = line;
-+
-+ while (1)
-+ {
-+ long len;
-+
-+ while (--copy > 0)
-+ {
-+ register int c = getc (stream);
-+ if (c == EOF)
-+ goto lose;
-+ else if ((*p++ = c) == '\n')
-+ goto win;
- }
--
-- *(*line + i) = 0;
--
-- return ferror(fp) ? -1 : i;
-+
-+ /* Need to enlarge the line buffer. */
-+ len = p - line;
-+ size *= 2;
-+ line = (char *) realloc (line, size);
-+ if (line == NULL)
-+ goto lose;
-+ *lineptr = line;
-+ *n = size;
-+ p = line + len;
-+ copy = size - len;
-+ }
-+
-+ lose:
-+ if (p == *lineptr)
-+ return (size_t) -1;
-+
-+ /* Return a partial line since we got an error in the middle. */
-+ win:
-+#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(__EMX__)
-+ if (p - 2 >= *lineptr && p[-2] == '\r')
-+ p[-2] = p[-1], --p;
-+#endif
-+ *p = '\0';
-+ return p - *lineptr;
- }
-
- #endif
--