After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511589 - Anjuta uses GNOME-VFS
Anjuta uses GNOME-VFS
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: core application
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks: 588322
 
 
Reported: 2008-01-23 17:53 UTC by Rob Bradford
Modified: 2009-07-11 16:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
remove gnomevfs from file-loader (10.25 KB, patch)
2008-10-17 22:33 UTC, Jens Georg
committed Details | Review
remove gnomevfs from plugin (1.63 KB, patch)
2008-10-17 23:03 UTC, Jens Georg
none Details | Review
add utility function and remove more gnomevfs (4.73 KB, patch)
2008-10-17 23:49 UTC, Jens Georg
none Details | Review
add utility function and remove more gnomevfs (4.68 KB, patch)
2008-10-17 23:59 UTC, Jens Georg
committed Details | Review
port for CVS plugun (6.75 KB, patch)
2008-11-02 13:03 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for more plugins (6.52 KB, patch)
2008-11-03 20:52 UTC, Jens Georg
committed Details | Review
Fix gnome-vfs in gtodo plugin (17.02 KB, patch)
2008-11-14 17:45 UTC, Jens Georg
reviewed Details | Review
Fix usage of gnome-vfs for gtodo-plugin (17.02 KB, patch)
2008-12-07 17:58 UTC, Jens Georg
committed Details | Review
FIx usage of gnome-vfs for valgrind plugin (3.98 KB, patch)
2008-12-17 21:26 UTC, Jens Georg
none Details | Review
Fix usage of gnome-vfs for valgrind anjuta_util_diff (6.62 KB, patch)
2008-12-18 16:55 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for profiler plugin (7.45 KB, patch)
2008-12-18 20:40 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for message view plugin (2.47 KB, patch)
2008-12-18 21:05 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for macro plugin (3.92 KB, patch)
2008-12-18 21:55 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for search plugin (1.74 KB, patch)
2008-12-18 22:11 UTC, Jens Georg
committed Details | Review
Use gio 2.16 API in profile plugin (582 bytes, patch)
2008-12-19 23:08 UTC, Jens Georg
committed Details | Review
Fix of a regression introduced by previous CVS patch (1.43 KB, patch)
2008-12-27 23:02 UTC, Jens Georg
committed Details | Review
Fix usage of GnomeVFS for subversion plugin (3.59 KB, patch)
2008-12-28 21:11 UTC, Jens Georg
committed Details | Review
Replace gnomevfs in run-program plugin with gio (3.56 KB, patch)
2008-12-29 12:06 UTC, Jens Georg
none Details | Review
Replace gnomevfs in run-program plugin with gio, 2nd try (3.48 KB, patch)
2008-12-30 13:40 UTC, Jens Georg
committed Details | Review
port symbol-db to gio (4.49 KB, patch)
2009-01-05 22:27 UTC, Carl-Anton Ingmarsson
committed Details | Review
replace glib-2.18 only functions with older counterparts (3.32 KB, patch)
2009-01-06 08:47 UTC, Jens Georg
committed Details | Review
Remove gnome-vfs from Makefile.am (4.01 KB, patch)
2009-01-06 11:48 UTC, Jens Georg
committed Details | Review
remove code not needed in gio/gfvs (1.59 KB, patch)
2009-01-06 13:20 UTC, Jens Georg
committed Details | Review
Fix usage of gnome-vfs for debug-manager (9.03 KB, patch)
2009-01-13 00:24 UTC, Jens Georg
committed Details | Review
Remove gnome-vfs from project-manager (12.60 KB, patch)
2009-01-15 17:48 UTC, Jens Georg
none Details | Review
remove dangling includes, Makefile references etc. (18.90 KB, patch)
2009-01-15 18:29 UTC, Jens Georg
none Details | Review
126527: remove dangling includes, Makefile references etc. (7.00 KB, patch)
2009-01-15 21:26 UTC, Jens Georg
committed Details | Review
Remove gnome-vfs from project-manager (12.77 KB, patch)
2009-01-15 23:20 UTC, Jens Georg
committed Details | Review
remove gnome-vfs from gbf-mkfile plugin and fix a bug affecting creating wrong uris for source files (17.91 KB, patch)
2009-01-16 15:41 UTC, Jens Georg
committed Details | Review
remove gnome-vfs from gbf-am plugin (17.75 KB, patch)
2009-01-16 17:21 UTC, Jens Georg
committed Details | Review
last patch to remove nearly everything left. (3.99 KB, patch)
2009-01-16 17:40 UTC, Jens Georg
committed Details | Review
very last patch to port benchmark.c (2.03 KB, patch)
2009-01-17 01:32 UTC, Jens Georg
committed Details | Review
Fix regression found by jhs (2.47 KB, patch)
2009-02-02 00:34 UTC, Jens Georg
committed Details | Review
fix remaning places (2.25 KB, patch)
2009-02-17 18:46 UTC, Jens Georg
committed Details | Review

Description Rob Bradford 2008-01-23 17:53:43 UTC
GNOME-VFS will be deprecated when glib 2.16 is released (with GNOME 2.22)

The following C files use functions beginning with gnome_vfs:

rob@poseidon:~/projects/anjuta/trunk$ grep -c  --include *.c -r gnome_vfs . | sort -r -n -t : -k 2
./plugins/sourceview/anjuta-document-saver.c:43
./plugins/editor/text_editor.c:35
./plugins/sourceview/anjuta-document-loader.c:32
./plugins/document-manager/action-callbacks.c:32
./libegg/egg-recent-files-module.c:26
./plugins/file-loader/plugin.c:25
./plugins/gtodo/libgtodo.c:21
./plugins/project-manager/plugin.c:14
./plugins/symbol-db/symbol-db-engine.c:12
./plugins/document-manager/anjuta-docman.c:11
./libanjuta/anjuta-profile.c:11
./libanjuta/anjuta-utils.c:10
./plugins/symbol-db/plugin.c:9
./plugins/sourceview/anjuta-document.c:9
./plugins/project-import/project-import.c:9
./libegg/egg-recent-item.c:9
./plugins/subversion/plugin.c:8
./plugins/profiler/plugin.c:8
./plugins/debug-manager/start.c:8
./plugins/cvs-plugin/plugin.c:8
./libegg/egg-recent-model.c:8
./plugins/symbol-browser/plugin.c:6
./plugins/symbol-browser/an_symbol_prefs.c:6
./plugins/sourceview/anjuta-utils.c:6
./plugins/macro/macro-db.c:6
./plugins/valgrind/vgdefaultview.c:5
./plugins/message-view/message-view.c:5
./plugins/indent/indent-util.c:5
./plugins/file-wizard/file.c:5
./plugins/file-manager/file-model.c:5
./plugins/valgrind/plugin.c:4
./plugins/sourceview/sourceview.c:4
./plugins/profiler/gprof-profile-data.c:4
./plugins/glade/anjuta-design-document.c:4
./plugins/debug-manager/breakpoints.c:4
./plugins/build-basic-autotools/build-basic-autotools.c:4
./plugins/glade/plugin.c:3
./plugins/document-manager/plugin.c:3
./plugins/build-basic-autotools/executer.c:3
./src/main.c:2
./plugins/symbol-browser/an_symbol_view.c:2
./plugins/search/search-replace_backend.c:2
./plugins/project-wizard/property.c:2
./plugins/gtodo/export.c:2
./plugins/debug-manager/threads.c:2
./plugins/debug-manager/plugin.c:2
./plugins/tools/variable.c:1
./plugins/tools/editor.c:1
./plugins/symbol-db/test/main.c:1
./plugins/file-wizard/plugin.c:1
./plugins/file-manager/plugin.c:1
./plugins/debug-manager/stack_trace.c:1
./plugins/cvs-plugin/cvs-interface.c:1
./plugins/cvs-plugin/cvs-execute.c:1
./plugins/cvs-plugin/cvs-callbacks.c:1
./plugins/class-inheritance/plugin.c:1
./plugins/class-gen/plugin.c:1
Comment 1 Johannes Schmid 2008-01-24 11:14:43 UTC
I will pay everyone a bear who fixes ports this completely on next GUADEC ;-)

Anyway, of course you are right but we really never intended to fix this before 2.22 as many other modules. I don't know when we will decide to depend completely on the libs from 2.22 as Anjuta should currently work even with 2.18.
Comment 2 Johannes Schmid 2008-03-16 20:01:20 UTC
s/bear/beer ;-)
Comment 3 Johannes Schmid 2008-06-13 22:47:27 UTC
file-manager done...
Comment 4 Jens Georg 2008-10-17 22:33:57 UTC
Created attachment 120808 [details] [review]
remove gnomevfs from file-loader

This patch removes the remaining gnomevfs-mime and gnomevfs stuff from file-loader plugin; more to come
Comment 5 Jens Georg 2008-10-17 23:03:57 UTC
Created attachment 120810 [details] [review]
remove gnomevfs from plugin

This patch removes gnomevfs from the build-basic-autotools plugin
Comment 6 Jens Georg 2008-10-17 23:15:28 UTC
Nevermind that last patch. Will add a function to libanjuta, because the usage is very common.
Comment 7 Jens Georg 2008-10-17 23:49:17 UTC
Created attachment 120812 [details] [review]
add utility function and remove more gnomevfs

add utilitiy function to libanjuta for getting local path from uri. Cleanup of build-basic-autotools and class-gen of gnomevfs-deps
Comment 8 Jens Georg 2008-10-17 23:59:21 UTC
Created attachment 120814 [details] [review]
add utility function and remove more gnomevfs

*sigh* will stop posting patches today, get some sleep; does the same as previous patch.
Comment 9 Massimo Cora' 2008-10-18 14:32:48 UTC
on ./plugins/symbol-db/plugin.c I see a gnome_vfs_get_mime_type_for_name () call, which I read there's not such thing on GIO.
Any hints? If we cannot come up with a solution symbol-db cannot be ported completely to GIO.

http://library.gnome.org/devel/gio/2.15/ch15s03.html.
Comment 10 Johannes Schmid 2008-10-18 15:52:26 UTC
(In reply to comment #8)
> Created an attachment (id=120814) [edit]
> add utility function and remove more gnomevfs

Awesome patches series! I will be away next week so it might take some time until there are reviewed if nobody else takes care.

Thanks!
Comment 11 Johannes Schmid 2008-10-18 15:55:54 UTC
(In reply to comment #8)
> Created an attachment (id=120814) [edit]
> add utility function and remove more gnomevfs

Awesome patches series! I will be away next week so it might take some time until there are reviewed if nobody else takes care.

Some notes:
You don't need anjuta_utils_get_local_path_from_uri(). You can use g_file_get_path() instead. This will return NULL if there is no local representation of the file.
Comment 12 Jens Georg 2008-10-19 13:14:46 UTC
I know, and I used it in places where a GFile is already available; in other places like the class-gen plugin, I got tired of writing

file = g_file_new_for_uri (uri);
local_path = g_file_get_path (file);
g_object_unref (file);

(which is actually the whole content of anjuta_util_get_local_path_from_uri)
Comment 13 Johannes Schmid 2008-10-19 21:40:22 UTC
Hi!

(In reply to comment #12)
> I know, and I used it in places where a GFile is already available; in other
> places like the class-gen plugin, I got tired of writing
> 
> file = g_file_new_for_uri (uri);
> local_path = g_file_get_path (file);
> g_object_unref (file);
> 
> (which is actually the whole content of anjuta_util_get_local_path_from_uri)
> 

OK, I see. I would prefer not to use an uri in the first place (but instead a GFile*) but that's not possible for some API.

As already discussed, we should port any posix/glib file operation to gio and make them async wherever possible. (Speaking of the "TODO: use gio here" comment)

Anyway, the patches look good - they will be committed soon.
Comment 14 Johannes Schmid 2008-10-25 21:26:21 UTC
Thanks a lot for your awesome constribution, Jens! That was really high quality.

Next time, please also attach a ChangeLog entry (see HACKING for details).

We have come a long way:

./plugins/gtodo/libgtodo.c:21
./plugins/project-manager/plugin.c:14
./plugins/project-import/project-import.c:12
./libanjuta/anjuta-profile.c:11
./libanjuta/anjuta-utils.c:10
./plugins/debug-manager/start.c:9
./plugins/profiler/plugin.c:8
./plugins/cvs-plugin/plugin.c:7
./plugins/symbol-browser/an_symbol_prefs.c:6
./plugins/subversion/plugin.c:6
./plugins/macro/macro-db.c:6
./plugins/valgrind/vgdefaultview.c:5
./plugins/symbol-db/test/main.c:5
./plugins/symbol-browser/plugin.c:5
./plugins/run-program/parameters.c:5
./plugins/message-view/message-view.c:5
./plugins/indent/indent-util.c:5
./plugins/valgrind/plugin.c:4
./plugins/symbol-db/symbol-db-system.c:4
./plugins/symbol-browser/an_symbol_view.c:4
./plugins/profiler/gprof-profile-data.c:4
./plugins/debug-manager/breakpoints.c:4
./plugins/symbol-db/test/benchmark.c:3
./plugins/symbol-db/plugin.c:3
./src/main.c:2
./plugins/search/search-replace_backend.c:2
./plugins/run-program/execute.c:2
./plugins/project-wizard/property.c:2
./plugins/gtodo/export.c:2
./plugins/debug-manager/threads.c:2
./plugins/tools/variable.c:1
./plugins/glade/plugin.c:1
./plugins/file-wizard/plugin.c:1
./plugins/debug-manager/stack_trace.c:1
./plugins/cvs-plugin/cvs-interface.c:1
./plugins/cvs-plugin/cvs-execute.c:1
./plugins/cvs-plugin/cvs-callbacks.c:1
./plugins/class-inheritance/plugin.c:1

Still some files to do...
Comment 15 Jens Georg 2008-11-02 13:03:43 UTC
Created attachment 121813 [details] [review]
port for CVS plugun

Next one. I'm a bit busy at work, sorry for the delay.
Comment 16 Jens Georg 2008-11-02 13:32:21 UTC
btw, your statistics are a bit faulty; ./plugins/glade/plugin.c:1 is already ported, the _vfs_ call is in a commented block
Comment 17 Johannes Schmid 2008-11-02 18:02:24 UTC
lies, damned lies, statistics ;-)

Thanks!
Comment 18 Jens Georg 2008-11-03 20:52:41 UTC
Created attachment 121915 [details] [review]
Fix usage of gnome-vfs for more plugins

remove more gnome-vfs. Also fixes a bug in project-import that there was no error dialog showing if there was an error during import.
Comment 19 Sébastien Granjoux 2008-11-10 20:57:38 UTC
I have committed this in svn trunk. Thanks Jens.
Comment 20 Sébastien Granjoux 2008-11-11 20:11:30 UTC
While fixing another bug, I have removed the use of gnome-vfs in anjuta-profile.c. 

I will take care of project-manager and project-import when I will be able to merge gnome-build in Anjuta.
Comment 21 Jens Georg 2008-11-14 17:45:28 UTC
Created attachment 122675 [details] [review]
Fix gnome-vfs in gtodo plugin
Comment 22 Sébastien Granjoux 2008-12-07 15:59:49 UTC
(In reply to comment #21)
> Created an attachment (id=122675) [edit]
> Fix gnome-vfs in gtodo plugin

It's quite a lots of change. It looks fine. I have just read it. Have you checked that the plugin is still working fine ?

Then, I have question about this code in ligtodo.c:598: 
		read = g_file_info_get_attribute_boolean (file_info, "access::can_read");
		write = g_file_info_get_attribute_boolean (file_info, "access::can_write");

		/* If I am not allowed to read the file */
		if(read)
		{
			/* save some more info here.. check for some logicol errors and print it. */
			g_set_error(&tmp_error,LIBGTODO_ERROR,LIBGTODO_ERROR_NO_PERMISSION,
					_("No permission to read the file."));		
			g_propagate_error(error, tmp_error);                                                         
			return TRUE;
		}

You have replace the old "if (read == 0)" by "if (read)" but I think it should be rather "if (!read)", no ?
Comment 23 Jens Georg 2008-12-07 17:13:53 UTC
Yes, you're right. I only tried not-writable. But there is another problem with non-readable files; I'll update the patch, including your comment
Comment 24 Jens Georg 2008-12-07 17:58:29 UTC
Created attachment 124116 [details] [review]
Fix usage of gnome-vfs for gtodo-plugin
Comment 25 Sébastien Granjoux 2008-12-07 19:00:24 UTC
(In reply to comment #24)
> Created an attachment (id=124116) [edit]
> Fix usage of gnome-vfs for gtodo-plugin

Ok Thanks for your patch. I have just committed it. 

Comment 26 Jens Georg 2008-12-17 21:26:14 UTC
Created attachment 124890 [details] [review]
FIx usage of gnome-vfs for valgrind plugin
Comment 27 Jens Georg 2008-12-18 16:55:13 UTC
Created attachment 124935 [details] [review]
Fix usage of gnome-vfs for valgrind anjuta_util_diff
Comment 28 Jens Georg 2008-12-18 20:40:05 UTC
Created attachment 124962 [details] [review]
Fix usage of gnome-vfs for profiler plugin
Comment 29 Jens Georg 2008-12-18 21:05:58 UTC
Created attachment 124972 [details] [review]
Fix usage of gnome-vfs for message view plugin
Comment 30 Jens Georg 2008-12-18 21:55:36 UTC
Created attachment 124975 [details] [review]
Fix usage of gnome-vfs for macro plugin
Comment 31 Jens Georg 2008-12-18 22:11:14 UTC
Created attachment 124976 [details] [review]
Fix usage of gnome-vfs for search plugin
Comment 32 Sébastien Granjoux 2008-12-19 22:01:56 UTC
Thanks for very much Jens for all your patches. I have applied all of them with no change. 
Comment 33 Massimo Cora' 2008-12-19 22:15:54 UTC
In file profiler/plugin.c it's used a glib 2.18 only function.

http://library.gnome.org/devel/gio/unstable/GFile.html#g-file-monitor

Are we requiring 2.18? I won't be able to use it until my distrib (debian sid) will update too.
Comment 34 Jens Georg 2008-12-19 22:49:20 UTC
may be changed to g_file_monitor_file without problem
Comment 35 Jens Georg 2008-12-19 23:08:00 UTC
Created attachment 125032 [details] [review]
Use gio 2.16 API in profile plugin
Comment 36 Massimo Cora' 2008-12-20 01:02:12 UTC
(In reply to comment #35)
> Created an attachment (id=125032) [edit]
> Use gio 2.16 API in profile plugin
> 


thanks. Patch applied.
Comment 37 Johannes Schmid 2008-12-21 16:58:48 UTC
(In reply to comment #31)
> Created an attachment (id=124976) [edit]
> Fix usage of gnome-vfs for search plugin
> 

Just a note: The search plugin uses the standard C library io feature (fwrite, etc.). We should also change this to gio as it is supposed to work for non-local files, too.
Comment 38 Jens Georg 2008-12-23 00:58:42 UTC
Before, after or in parallel of the current modifications of the search feature?
Comment 39 Johannes Schmid 2008-12-23 10:04:42 UTC
(In reply to comment #38)
> Before, after or in parallel of the current modifications of the search
> feature?
> 

I think we can do that in parallel without much harm. The big modifications in the search plugin have been done and the rest are just some UI changes that shouldn't affect the backend anymore.
Comment 40 Jens Georg 2008-12-23 18:47:13 UTC
(In reply to comment #39)

> I think we can do that in parallel without much harm. The big modifications in
> the search plugin have been done and the rest are just some UI changes that
> shouldn't affect the backend anymore.
> 
I opened a feature bug #565492 and attached a patch to it
Comment 41 Jens Georg 2008-12-27 23:02:37 UTC
Created attachment 125407 [details] [review]
Fix of a regression introduced by previous CVS patch
Comment 42 Johannes Schmid 2008-12-28 09:43:08 UTC
Thanks Georg!
Comment 43 Jens Georg 2008-12-28 21:11:32 UTC
Created attachment 125449 [details] [review]
Fix usage of GnomeVFS for subversion plugin
Comment 44 Jens Georg 2008-12-29 12:06:59 UTC
Created attachment 125469 [details] [review]
Replace gnomevfs in run-program plugin with gio
Comment 45 Jens Georg 2008-12-30 13:40:29 UTC
Created attachment 125526 [details] [review]
Replace gnomevfs in run-program plugin with gio, 2nd try

remove large portion of path resolvment, because g_file_* does it inherently
Comment 46 Johannes Schmid 2009-01-05 11:12:41 UTC
Thanks a lot for your patches Jens.

So, what's remaining:
- debug-manager
- gtodo
- symbol-db
- gnome-build (gbf-am, gbf-mkfile)

There is a patch for gnome-build in bug #539124 but it is broken and I guess it also has to be updated to apply to the new build structure.
Comment 47 Jens Georg 2009-01-05 12:01:46 UTC
actually gtodo is done, there's an #ifdef 0 section left in code currently not used by anjuta. 
Comment 48 Jens Georg 2009-01-05 12:42:29 UTC
btw you may remove the whole #ifdef 0 block in libgtodo.c, it's not necessary with gio anymore. I cannot provide a patch currently, my sourcetree is in a mess
Comment 49 Massimo Cora' 2009-01-05 22:18:53 UTC
subversion/plugin.c:233:	type = g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NULL);

uses a function which is glib 2.18+ only.
Comment 50 Carl-Anton Ingmarsson 2009-01-05 22:27:59 UTC
Created attachment 125809 [details] [review]
port symbol-db to gio

Pretty straightforward patch that ports all GnomeVfs functions to their gio counterparts.
Comment 51 Massimo Cora' 2009-01-05 22:48:02 UTC
(In reply to comment #50)
> Created an attachment (id=125809) [edit]
> port symbol-db to gio
> 
> Pretty straightforward patch that ports all GnomeVfs functions to their gio
> counterparts.
> 

committed, thanks.
Comment 52 Jens Georg 2009-01-06 08:47:44 UTC
Created attachment 125836 [details] [review]
replace glib-2.18 only functions with older counterparts

*sigh*

/me votes for a bigger size of the "Since" paragraph in devhelp
Comment 53 Massimo Cora' 2009-01-06 10:43:49 UTC
committed, thanks for the patch.
Comment 54 Massimo Cora' 2009-01-06 11:03:40 UTC
I've removed GNOME_VFS_LIBS from svn and cvs Makefile.am, because they won't be needed anymore.
It would be great if also on the plugins already ported to gio there was this trivial patch.
Btw: I don't know the status of the porting so I avoid to patch here and there, but surely you know it!

thanks a lot.

Comment 55 Jens Georg 2009-01-06 11:48:18 UTC
Created attachment 125847 [details] [review]
Remove gnome-vfs from Makefile.am
Comment 56 Jens Georg 2009-01-06 13:20:25 UTC
Created attachment 125850 [details] [review]
remove code not needed in gio/gfvs
Comment 57 Massimo Cora' 2009-01-06 15:12:43 UTC
patches committed, thanks for them!
Comment 58 André Klapper 2009-01-11 20:33:23 UTC
So is this completely fixed now?
Because suka set this at http://live.gnome.org/action/diff/GioPort?action=diff&rev1=158&rev2=159
Comment 59 Sébastien Granjoux 2009-01-11 20:50:43 UTC
No, I think there is a few use left. I think it could be completed in this cycle.
Comment 60 Jens Georg 2009-01-13 00:24:46 UTC
Created attachment 126324 [details] [review]
Fix usage of gnome-vfs for debug-manager
Comment 61 Jens Georg 2009-01-13 00:26:00 UTC
> So, what's remaining:
> - debug-manager
> - gtodo
> - symbol-db
> - gnome-build (gbf-am, gbf-mkfile)
> 

What about project-manager? Saw it when tracing bug #567541. One small fix is contained in the patch for that bug
Comment 62 Johannes Schmid 2009-01-13 08:45:36 UTC
> What about project-manager? Saw it when tracing bug #567541. One small fix is
> contained in the patch for that bug

Obviously it also uses gnome-vfs. Maybe I missed it last time I checked. Seems like we really have a change to kill gnome-vfs for this release which would be cool!
Comment 63 Jens Georg 2009-01-15 17:48:01 UTC
Created attachment 126520 [details] [review]
Remove gnome-vfs from project-manager

I think the project-manager uri handling stuff could use some more cleanup than what I did.
Comment 64 Jens Georg 2009-01-15 18:29:22 UTC
Created attachment 126527 [details] [review]
remove dangling includes, Makefile references etc.
Comment 65 Jens Georg 2009-01-15 18:36:01 UTC
(In reply to comment #62)
> > What about project-manager? Saw it when tracing bug #567541. One small fix is
> > contained in the patch for that bug
> 
> Obviously it also uses gnome-vfs. Maybe I missed it last time I checked. Seems
> like we really have a change to kill gnome-vfs for this release which would be
> cool!
> 

grep -c --include *.c --include *.am --include *.h  -ir gnome[-_]vfs . | sort -rnt : -k2 | grep -v :0$
./plugins/gbf-am/gbf-am-project.c:45
./plugins/gbf-mkfile/gbf-mkfile-project.c:29
./plugins/symbol-db/test/main.c:8
./plugins/symbol-db/test/benchmark.c:5
./src/main.c:3
./plugins/glade/plugin.c:2
./src/anjuta.c:1
./libanjuta/anjuta-utils.c:1
./libanjuta/anjuta-preferences.c:1
./libanjuta/anjuta-plugin-manager.c:1

Doesn't look too bad, I think. Hardest problem is gnome-build. I'd vote for using the methods of the related bug for gnome-build and do an overhaul later on
Comment 66 Jens Georg 2009-01-15 21:26:12 UTC
Created attachment 126536 [details] [review]
126527: remove dangling includes, Makefile references etc.

patch 126527 without included 126520
Comment 67 Jens Georg 2009-01-15 23:20:26 UTC
Created attachment 126544 [details] [review]
Remove gnome-vfs from project-manager

work around a problem when files in a project do not exist on filesystem (like #554614)
Comment 68 Jens Georg 2009-01-16 15:41:51 UTC
Created attachment 126587 [details] [review]
remove gnome-vfs from gbf-mkfile plugin and fix a bug affecting creating wrong uris for source files
Comment 69 Jens Georg 2009-01-16 17:21:18 UTC
Created attachment 126595 [details] [review]
remove gnome-vfs from gbf-am plugin

whew... gbf-am and gbf-mkfile share a serious amount of code... maybe some refactoring should be done here...
Comment 70 Jens Georg 2009-01-16 17:40:13 UTC
Created attachment 126596 [details] [review]
last patch to remove nearly everything left. 

The only files left are:

./plugins/symbol-db/test/main.c:8
./plugins/symbol-db/test/benchmark.c:5

The stuff in main.c is enclosed in #if 0 and the stuff in benchmark.c is not even compiled.
Comment 71 Johannes Schmid 2009-01-16 18:29:48 UTC
Hi!

> whew... gbf-am and gbf-mkfile share a serious amount of code... maybe some
> refactoring should be done here...

gbf-mkfile is actually quite broken and does only allow very basic stuff. I don't really like the use of perl scripts for the parsing anyway and reusing the automake stuff for the Makefile scanning is not good either. 

Comment 72 Sébastien Granjoux 2009-01-16 18:34:14 UTC
(In reply to comment #69)
> whew... gbf-am and gbf-mkfile share a serious amount of code... maybe some
> refactoring should be done here...

Definitively yes, but I think we should keep this for the next cycle. 
 

Comment 73 Massimo Cora' 2009-01-17 00:49:38 UTC
(In reply to comment #70)
> Created an attachment (id=126596) [edit]
> last patch to remove nearly everything left. 
> 
> The only files left are:
> 
> ./plugins/symbol-db/test/main.c:8
> ./plugins/symbol-db/test/benchmark.c:5
> 
> The stuff in main.c is enclosed in #if 0 and the stuff in benchmark.c is not
> even compiled.
> 

benchmark.c is used to test speed of population engine.
I'll be grateful to you if you could port it to gio too.
You can leave there main.c coz it's not used now.
Comment 74 Jens Georg 2009-01-17 01:32:52 UTC
Created attachment 126630 [details] [review]
very last patch to port benchmark.c
Comment 75 Massimo Cora' 2009-01-17 11:55:54 UTC
(In reply to comment #74)
> Created an attachment (id=126630) [edit]
> very last patch to port benchmark.c
> 

patch committed! thanks very much!
Comment 76 Johannes Schmid 2009-01-19 14:20:47 UTC
Thanks for the patches! I had to fix some little things in the project-manager patch (wrong unref, missing argument and typo), you might want to check if this is all correct.
Comment 77 Jens Georg 2009-01-19 15:29:18 UTC
Looks fine, I think I have submitted the wrong version of the patch.
Comment 78 Massimo Cora' 2009-01-19 19:43:15 UTC
I cannot have editor plugin to compile anymore.

print.c:30:39: error: libgnomeprint/gnome-print.h: No such file or directory
print.c:31:43: error: libgnomeprint/gnome-print-job.h: No such file or directory
print.c:32:48: error: libgnomeprintui/gnome-print-dialog.h: No such file or directory
print.c:33:53: error: libgnomeprintui/gnome-print-job-preview.h: No such file or directory
print.c:64: error: expected specifier-qualifier-list before ‘GnomeFont’
print.c:78: error: expected specifier-qualifier-list before ‘GnomePrintJob’
print.c:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
print.c: In function ‘anjuta_print_job_info_style_destroy’:
print.c:141: error: ‘PrintJobInfoStyle’ has no member named ‘font’
print.c:141: warning: implicit declaration of function ‘gnome_font_unref’
print.c:141: warning: nested extern declaration of ‘gnome_font_unref’
print.c:141: error: ‘PrintJobInfoStyle’ has no member named ‘font’
print.c:142: error: ‘PrintJobInfoStyle’ has no member named ‘font_name’
print.c:142: error: ‘PrintJobInfoStyle’ has no member named ‘font_name’
print.c: In function ‘anjuta_print_job_info_style_load_font’:
print.c:173: error: ‘GnomeFontFace’ undeclared (first use in this function)
print.c:173: error: (Each undeclared identifier is reported only once
print.c:173: error: for each function it appears in.)
print.c:173: error: ‘font_face’ undeclared (first use in this function)
print.c:176: error: ‘PrintJobInfoStyle’ has no member named ‘font_name’
print.c:178: error: ‘PrintJobInfoStyle’ has no member named ‘font_name’
print.c:179: error: ‘PrintJobInfoStyle’ has no member named ‘bold’
print.c:185: error: ‘PrintJobInfoStyle’ has no member named ‘italics’
print.c:191: error: ‘PrintJobInfoStyle’ has no member named ‘size’
print.c:193: error: ‘PrintJobInfoStyle’ has no member named ‘size’
print.c:195: error: ‘PrintJobInfoStyle’ has no member named ‘size’
print.c:198: error: ‘PrintJobInfoStyle’ has no member named ‘font’
[...]



was libgnomeprintui expected to be removed?

Comment 79 Massimo Cora' 2009-01-19 20:00:42 UTC
project-manager fails too.

gbf-tree-data.c: In function ‘gbf_tree_data_new_source’:
gbf-tree-data.c:83: error: ‘GFile’ undeclared (first use in this function)
gbf-tree-data.c:83: error: (Each undeclared identifier is reported only once
gbf-tree-data.c:83: error: for each function it appears in.)
gbf-tree-data.c:83: error: ‘file’ undeclared (first use in this function)
gbf-tree-data.c:84: error: ‘GFileInfo’ undeclared (first use in this function)
gbf-tree-data.c:84: error: ‘file_info’ undeclared (first use in this function)
gbf-tree-data.c:91: warning: implicit declaration of function ‘g_file_new_for_uri’
gbf-tree-data.c:91: warning: nested extern declaration of ‘g_file_new_for_uri’
gbf-tree-data.c:92: warning: implicit declaration of function ‘g_file_get_basename’
gbf-tree-data.c:92: warning: nested extern declaration of ‘g_file_get_basename’
gbf-tree-data.c:92: warning: assignment makes pointer from integer without a cast
gbf-tree-data.c:93: warning: implicit declaration of function ‘g_file_query_exists’
gbf-tree-data.c:93: warning: nested extern declaration of ‘g_file_query_exists’
gbf-tree-data.c:95: warning: implicit declaration of function ‘g_file_query_info’
gbf-tree-data.c:95: warning: nested extern declaration of ‘g_file_query_info’
gbf-tree-data.c:96: error: ‘G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME’ undeclared (first use in this function)
gbf-tree-data.c:97: error: ‘G_FILE_QUERY_INFO_NONE’ undeclared (first use in this function)
Comment 80 André Klapper 2009-01-19 21:42:09 UTC
http://svn.gnome.org/viewvc/anjuta/trunk/configure.in?r1=4609&r2=4610
removed
libgnomeprint-2.2 >= $GNOME_REQUIRED libgnomeprintui-2.2 >= $GNOME_REQUIRED
from configure.in.

--> Jens?


However, this issue is unrelated to THIS bug report as this went in for rev4609 before gnome-vfs was killed.
Comment 81 Johannes Schmid 2009-01-19 23:14:36 UTC
Should work now - at least make distcheck doesn't complain any longer...
Comment 82 Jens Georg 2009-01-24 23:40:15 UTC
The patch for debug manager seems to be missing from trunk...
Comment 83 Sébastien Granjoux 2009-01-25 16:21:00 UTC
Thanks Jens. I have committed the debug manager patch.

Is there something missing now ?
Comment 84 Johannes Schmid 2009-02-01 22:52:40 UTC
There is something wrong with gbf-am now. Try adding files to a target and instead of adding the files, they are added using a relative path to the project root.

For example

TEST_SOURCE =
  main.c \
  ../../src/test1.c \
  ../../src/test2.c

(note that main.c, test1.c and test2.c are all in the same directory src/)
Comment 85 Jens Georg 2009-02-02 00:34:08 UTC
Created attachment 127740 [details] [review]
Fix regression found by jhs

Fixes also a c&p error for uri_is_parent
Comment 86 Johannes Schmid 2009-02-02 08:31:08 UTC
Thanks!
Comment 87 André Klapper 2009-02-15 22:11:06 UTC
I don't consider this bug completely fixed yet. ;-)


$:andre\> grep -r gnomevfs .
./plugins/symbol-db/test/main.c:#include <libgnomevfs/gnome-vfs.h>
./plugins/profiler/plugin.h:#include <libgnomevfs/gnome-vfs-utils.h>
./plugins/profiler/plugin.h:#include <libgnomevfs/gnome-vfs.h>
./plugins/profiler/gprof-profile-data.h:#include <libgnomevfs/gnome-vfs.h>

$:andre\> grep -r gnome_vfs .
./plugins/symbol-db/test/main.c:gnome_vfs_init ();
./plugins/symbol-db/test/main.c:if (gnome_vfs_directory_list_load 
./plugins/symbol-db/test/main.c:local_path = gnome_vfs_get_local_path_from_uri (tmp);
./plugins/symbol-db/test/main.c:	gnome_vfs_init  ();
./plugins/symbol-db/test/main.c:	gnome_vfs_init ();
./plugins/symbol-db/test/benchmark.c:	gnome_vfs_init();
Comment 88 Jens Georg 2009-02-16 08:57:11 UTC
Will send patch for profiler later; as for symbol-db, this is all within a huge #if 0 block
Comment 89 Massimo Cora' 2009-02-16 13:31:56 UTC
(In reply to comment #88)
> as for symbol-db, this is all within a huge
> #if 0 block
> 

I confirm this. That is only dead-code that will be replaced when new tests will be required. There's no need to remove it too, being inside a #if 0 block.

Comment 90 André Klapper 2009-02-16 13:45:51 UTC
I get your point, but it still causes false positives in the scripts we run to check for deprecated stuff. :)
Comment 91 Massimo Cora' 2009-02-16 14:20:05 UTC
ok then, removed main.c on svn trunk.
Comment 92 Jens Georg 2009-02-17 18:46:15 UTC
Created attachment 128916 [details] [review]
fix remaning places
Comment 93 Massimo Cora' 2009-02-18 21:01:20 UTC
(In reply to comment #92)
> Created an attachment (id=128916) [edit]
> fix remaning places
> 

committed, thanks!


(In reply to comment #87)
> I don't consider this bug completely fixed yet. ;-)
> 


Andre is it all ok now?
Comment 94 Massimo Cora' 2009-02-20 21:45:02 UTC
I'm closing this. Please reopen it if you find something wrong.
Comment 95 André Klapper 2009-02-20 22:29:41 UTC
cool. thanks a bunch.