RadioToolButton, ToolButton, ToggleToolButton: add back the getter for the icon_name property
Follow up of fe11a3aa23
This commit is contained in:
parent
c411190178
commit
2bedec55ed
@ -85,7 +85,14 @@ class RadioToolButton(Gtk.RadioToolButton):
|
||||
self.set_icon_widget(icon)
|
||||
icon.show()
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name)
|
||||
def get_icon_name(self):
|
||||
if self.props.icon_widget is not None:
|
||||
return self.props.icon_widget.props.icon_name
|
||||
else:
|
||||
return None
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name,
|
||||
getter=get_icon_name)
|
||||
|
||||
def set_xo_color(self, xo_color):
|
||||
if self._xo_color != xo_color:
|
||||
|
@ -80,7 +80,14 @@ class ToggleToolButton(Gtk.ToggleToolButton):
|
||||
self.set_icon_widget(icon)
|
||||
icon.show()
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name)
|
||||
def get_icon_name(self):
|
||||
if self.props.icon_widget is not None:
|
||||
return self.props.icon_widget.props.icon_name
|
||||
else:
|
||||
return None
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name,
|
||||
getter=get_icon_name)
|
||||
|
||||
def create_palette(self):
|
||||
return None
|
||||
|
@ -119,7 +119,14 @@ class ToolButton(Gtk.ToolButton):
|
||||
self.set_icon_widget(icon)
|
||||
icon.show()
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name)
|
||||
def get_icon_name(self):
|
||||
if self.props.icon_widget is not None:
|
||||
return self.props.icon_widget.props.icon_name
|
||||
else:
|
||||
return None
|
||||
|
||||
icon_name = GObject.property(type=str, setter=set_icon_name,
|
||||
getter=get_icon_name)
|
||||
|
||||
def create_palette(self):
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user