Improve tooltips sizing
This commit is contained in:
@@ -77,6 +77,7 @@ class Palette(gobject.GObject):
|
||||
self._popdown_anim.add(_PopdownAnimation(self))
|
||||
|
||||
self._menu = _sugarext.Menu()
|
||||
self._menu.set_min_width(units.grid_to_pixels(1))
|
||||
|
||||
self._primary = _PrimaryMenuItem(label, accel_path)
|
||||
self._menu.append(self._primary)
|
||||
@@ -275,6 +276,7 @@ class Palette(gobject.GObject):
|
||||
class _PrimaryMenuItem(gtk.MenuItem):
|
||||
def __init__(self, label, accel_path):
|
||||
gtk.MenuItem.__init__(self)
|
||||
self.set_border_width(units.points_to_pixels(1))
|
||||
self._set_label(label, accel_path)
|
||||
|
||||
def set_label(self, label, accel_path):
|
||||
|
||||
Reference in New Issue
Block a user