[Schnouki ] using paint_shadow() rather than paint_flat_box() to add these borders/shadows. Fixes #5899
This commit is contained in:
parent
b6b44cb328
commit
cfb49bb4ec
1 changed files with 2 additions and 8 deletions
|
@ -135,14 +135,8 @@ class BaseTooltip:
|
||||||
def expose(self, widget, event):
|
def expose(self, widget, event):
|
||||||
style = self.win.get_style()
|
style = self.win.get_style()
|
||||||
size = self.win.get_size()
|
size = self.win.get_size()
|
||||||
style.paint_flat_box(self.win.window, gtk.STATE_NORMAL, gtk.SHADOW_OUT,
|
style.paint_shadow(self.win.window, gtk.STATE_NORMAL, gtk.SHADOW_OUT,
|
||||||
None, self.win, 'tooltip', 0, 0, -1, 1)
|
None, self.win, 'tooltip', 0, 0, size[0], size[1])
|
||||||
style.paint_flat_box(self.win.window, gtk.STATE_NORMAL, gtk.SHADOW_OUT,
|
|
||||||
None, self.win, 'tooltip', 0, size[1] - 1, -1, 1)
|
|
||||||
style.paint_flat_box(self.win.window, gtk.STATE_NORMAL, gtk.SHADOW_OUT,
|
|
||||||
None, self.win, 'tooltip', 0, 0, 1, -1)
|
|
||||||
style.paint_flat_box(self.win.window, gtk.STATE_NORMAL, gtk.SHADOW_OUT,
|
|
||||||
None, self.win, 'tooltip', size[0] - 1, 0, 1, -1)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def show_tooltip(self, data, widget_height, widget_y_position):
|
def show_tooltip(self, data, widget_height, widget_y_position):
|
||||||
|
|
Loading…
Add table
Reference in a new issue