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 503388 - No way to tell what file I'm editing in Glade
No way to tell what file I'm editing in Glade
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: user interface
git master
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-13 10:23 UTC by michael.lamothe
Modified: 2010-12-20 09:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Simple patch to add a path component after filename (618 bytes, patch)
2010-03-19 19:49 UTC, Rafael Villar Burke
none Details | Review

Description michael.lamothe 2007-12-13 10:23:36 UTC
Please describe the problem:
If you're a developer (I imagine most people using Glade
are) then you've probably got several version of the same Glade file
on you system from different branches. Unfortunately, I can't find a
way for Glade to tell me which path/file I'm editing i.e. trunk or
branch/0.3.

Steps to reproduce:
1. Open 2 versions of the same a glade file from 2 branches of a project
2. Try to determine which one is which


Actual results:
I can't tell which file I'm editing

Expected results:
The filename of the current editing file to be available somewhere.

Does this happen every time?
Yes

Other information:
I'm using 3.4.0 from Gutsy.
Comment 1 Vincent Geddes 2007-12-13 13:14:31 UTC
The absolute filenames can be shown in the statusbar by hovering over the open files in the "Projects" menu.

Maybe that isn't enough? Gedit shows the active document's absolute path in the window title, we could investigate that possibility.
Comment 2 michael.lamothe 2007-12-13 22:39:09 UTC
Excellent, thanks for the information.  At least I have a work-around now.

I have never been a fan of using the status bar for displaying important information.  My research on this has indicated that people don't look there unless they know something is there that they need.  I guess that this bug is just another example of this.  But, you guys are the usability experts so I'll let you tell me.

I think that putting the text in the window title is certainly a good idea.  Another idea is to have a "File->Properties" dialog.

Yet another idea is to have filename as the root node of the widget tree.

I'm in no way suggesting that these are ideal solutions, just offering my thoughts.
Comment 3 Rafael Villar Burke 2010-03-19 19:24:28 UTC
Starting with the file name in the window title is very convenient, as it allows to identify different files amongst minimized taskbar buttons, while using the full path would have the sad effect of probably making them all ellipsize to the same string.

An alternative proposal could be adding the full path after the name and in brackets like this:

gladefile.ui [/full/path/to/the/gladefile.ui]

IMHO, it would have all the upsides and none of the downsides of the proposed solution.
Comment 4 Rafael Villar Burke 2010-03-19 19:49:37 UTC
Created attachment 156580 [details] [review]
Simple patch to add a path component after filename
Comment 5 Rafael Villar Burke 2010-03-19 19:51:52 UTC
The previous patch can be controversial due to it potentially leading to very long titles that would clutter the window title. Also it could potentially force the window size in some desktop.

AFAICT no desktop does this and other applications (browsers, editors) use the document paths to give this information, so the problem should be gracefully handled by the window managers if they want to support editors or browsers with specific hacks.
Comment 6 Tristan Van Berkom 2010-12-20 09:51:09 UTC
I'm closing this now as the full path is now quite accessible.

As well as having the fullpath in the statusbar when hovering
the project menu item (which is not very accessible), now the
fullpath is available as a tooltip of the project's notebook
tab label (glade now shows notebook tabs to switch the projects).