Tab labels are truncated (Windows 7+)

Bug #1548104 reported by Patrick Storz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

On Windows tab labels (specifically labels in tabs of a GtkNotebook) are truncated on the right (see screenshot).
It seems the alignment is messed up, i.e. labels are shifted to the right, as apparent from the selection outline also visible in the screenshot.

Does anybody know how to fix this possibly by adjusting gtkrc accordingly? I can't figure out how to select those labels and/or what style attributes to change in order to make it work.

Tags: ui win32 win64
Revision history for this message
Patrick Storz (ede123) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP (32-bit), Inkscape 0.91 and trunk rev. 14663 (tested with English, French and German UI).

Could you please try the win32 version and confirm it affects the 64-bit version only?

Changed in inkscape:
importance: Undecided → Low
status: New → Incomplete
tags: added: ui win64
Revision history for this message
Patrick Storz (ede123) wrote :

This is independent of the Inkscape version used (0.91/trunk x86/x64) they're all affected.

Is the label really centered on XP or is the border just larger so that it doesn't get truncated?
Anyway it seems to be OS dependent then and also happens on Windows 10 (see screenshot)

tags: added: win32
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows 7 (32 bit), Inkscape 0.91 r13725 (Jan 30 2015)

when looking at the Document Properties dialog, Page tab, the text in the word "Page" appears to be right-aligned.
A similar behavior is seen when exporting a file as dxf. In the export dialog there is a tab called Options. The word "Options" appears to be right-aligned. screenshot attached here

Changed in inkscape:
status: Incomplete → Confirmed
Revision history for this message
Patrick Storz (ede123) wrote :

It's happening everywhere where a GtkNotebook widget is used (e.g. all extensions using notebooks).

Revision history for this message
jazzynico (jazzynico) wrote :

Also confirmed on Windows 7 (32-bit), Inkscape 0.91 and an old 0.47.

Changed in inkscape:
status: Confirmed → Triaged
summary: - Tab labels are truncated (Windows)
+ Tab labels are truncated (Windows 7+)
Revision history for this message
Patrick Storz (ede123) wrote :

To complete the list of screenshots...
Tab labels aren't centered on Windows XP either, they're not getting truncated though (as jazzynico already mentioned)

Revision history for this message
jazzynico (jazzynico) wrote :

Just tested some changes with the theme (thanks to https://wiki.gnome.org/Attic/GnomeArt/Tutorials/GtkThemes/GtkNotebook) but none of the available properties seems to have any effect. Investigations in progress.

Revision history for this message
Patrick Storz (ede123) wrote :

I wasn't able to find a solution either (but I'm also not experienced with GTK+ at all).

The property "tab-curvature" allows to hide the issue by increasing whitespace around tabs so the label isn't truncated anymore, but it obviously doesn't fix the alignment and therefore the cause of the problem.

Revision history for this message
jazzynico (jazzynico) wrote :

Forgot that one...
Adding "GtkNotebook::tab-curvature = 2" (or more) to the gtkrc file seems to fix the truncation. But it's still not correctly centered.

Revision history for this message
Patrick Storz (ede123) wrote :

Just a bit of additional information:
The program "gtk-demo" (test program that is part of GTK) is also affected by this issue, so it's not exclusive to Inkscape.

Leaves the question if it is a general issue with GTK that needs to be fixed in GTK code or if it is something we can work around using gtkrc or similar methods.

I'll investigate further and report and upstream bug when I find the time.

Revision history for this message
jazzynico (jazzynico) wrote :

I suggest that we workaround the bug in the .gtkrc file for now, with a comment explaining why the property change is needed (and a link to the report).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.