GNOME Bugzilla – Bug 551347
Symbol-db blocks preferences
Last modified: 2008-09-15 15:14:20 UTC
Steps to reproduce: - Open a project in anjuta (with symbol-db enabled) - Open preferences Expected: Preferences are usuable from the beginning Actual result: Preferences (and the whole Anjuta UI) is blocked for quite a while.
this is a known bug. It's due to a call to gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (fchooser), ctags_value); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fchooser), ctags_value); on symbol-db-prefs.c, line 348, 349. In my opinion this is a gtk bug, because it's like opening the /usr/bin directory with a file-open dialog: it takes ages to list all the files. They're a lot here ls -l /usr/bin/ | wc -l 3731 ctags value takes a little to appear too because of this slowness. It's not due to pkg-config parsing or so, because that's quite quick. what do you think? you can do a test: try to `cp /usr/bin/ctags /tmp/ctags`. Then set the ctags value on preferences to /tmp/ctags. Then close and reopen Anjuta. You'll see that reopening preferences will be instantaneous.
Hmm, maybe just replace that thing with a GtkComboBoxEntry having /usr/bin/ctags and /usr/local/bin/ctags as defaults for the popup-menu. That should be enough for most users. But please also file a bug in gtk+ about this issue!
Symbol-db v. 1.0 on bug #358479 should fix this. I added a GtkComboBoxEntry.