! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wrong rendering of GtkSpinButton's with GTK 2.15.x
Status:
CLOSED: FIXED
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Enrico Tröger editbugs 2009-02-16 15:23:32 CET
Created attachment 2173 
Bad rendered spinbutton with GTK 2.15.x

I'm not completely sure whether this is a bug in GTK or in Xfce's GTk theme engine.
When running apps with GTK 2.15.x, the GtkEntry inside GtkSpinButtons is cut off a little bit (see attached screenshots).
But this only happens with themes using the Xfce theme engine. I tried the default Xfce theme and my custom theme both using the Xfce theme engine. When using the default GTK theme engine or for example ubuntulooks (Human theme), the GtkSpiButton's are rendered correct.
Comment 1 Enrico Tröger editbugs 2009-02-16 15:24:11 CET
Created attachment 2174 
Correctly rendered spinbutton with GTK 2.14.7
Comment 2 Peter de Ridder editbugs 2011-02-25 01:35:51 CET
Created attachment 3513 
Keep the borders of the spin buttons

This patch makes the spinbutton draw the flat background before the border, so the border is displayed.
This might not be expected drawing outcome for solving this patch.
Another options is to only draw the border between the entry and the spin buttons, but make the other borders of the spin button flat.
Comment 3 Peter de Ridder editbugs 2011-02-26 01:12:08 CET
Created attachment 3521 
Borders around entry and draw the spin buttons flat

This patch makes entry draw the borders on a smaller area, so the entry has a border on the right. The spinbutton draw the flat background, so they look simular to the current gtk-xfce-engine spinbuttons.
This patch also fixes the focus line when interior_focus is false.
This is an alternative to the previous patch. This seems to be a more apropriate solution.
Comment 4 Peter de Ridder editbugs 2011-02-26 01:13:59 CET
*** Bug 5290 has been marked as a duplicate of this bug. ***
Comment 5 Peter de Ridder editbugs 2011-03-06 20:27:06 CET
gtk-xfce-engine-2.8.1 release includes the later patch to this bug.

Bug #4946

Reported by:
Enrico Tröger
Reported on: 2009-02-16
Last modified on: 2012-02-10
Duplicates (1):
  • 5290 Number input field in properties dialog has no right border

People

Assignee:
Olivier Fourdan
CC List:
2 users

Version

Attachments

Additional information