Replace use of deprecated icon_size by pixel_size

It's a trivial change, but the warning message was filling the logs.
This commit is contained in:
Gonzalo Odiard
2015-06-29 12:12:58 -03:00
committed by Martin Abente Lahaye
parent 78dcd5a7e4
commit 8af97e3e17
5 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -121,14 +121,14 @@ class PaletteMenuItem(Gtk.EventBox):
if icon_name is not None:
self.icon = Icon(icon_name=icon_name,
icon_size=Gtk.IconSize.SMALL_TOOLBAR)
pixel_size=style.SMALL_ICON_SIZE)
if xo_color is not None:
self.icon.props.xo_color = xo_color
self._hbox.pack_start(self.icon, expand=False, fill=False,
padding=style.DEFAULT_PADDING)
elif file_name is not None:
self.icon = Icon(file=file_name,
icon_size=Gtk.IconSize.SMALL_TOOLBAR)
pixel_size=style.SMALL_ICON_SIZE)
if xo_color is not None:
self.icon.props.xo_color = xo_color
self._hbox.pack_start(self.icon, expand=False, fill=False,