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 551347 - Symbol-db blocks preferences
Symbol-db blocks preferences
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: symbol-db
SVN TRUNK
Other Linux
: Normal major
: ---
Assigned To: Massimo Cora'
Anjuta maintainers
Depends on: 551384
Blocks:
 
 
Reported: 2008-09-08 10:40 UTC by Johannes Schmid
Modified: 2008-09-15 15:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johannes Schmid 2008-09-08 10:40:55 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.
Comment 1 Massimo Cora' 2008-09-08 12:55:02 UTC
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.
Comment 2 Johannes Schmid 2008-09-08 14:13:56 UTC
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!
Comment 3 Massimo Cora' 2008-09-12 21:13:26 UTC
Symbol-db v. 1.0 on bug #358479 should fix this. I added a GtkComboBoxEntry.