gtk: merge buttonimage and button

This commit is contained in:
alfrix
2022-11-22 14:22:59 -03:00
parent 34fde780fc
commit 593d8c678b
28 changed files with 143 additions and 162 deletions

View File

@@ -46,7 +46,7 @@ class ConsolePanel(ScreenPanel):
o2_switch.set_active(self.hidetemps)
o2_switch.connect("notify::active", self.hide_temps)
o3_button = self._gtk.ButtonImage("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
o3_button = self._gtk.Button("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
o3_button.connect("clicked", self.clear)
options = Gtk.Box()
@@ -84,7 +84,7 @@ class ConsolePanel(ScreenPanel):
entry.connect("activate", self._send_command)
entry.grab_focus_without_selecting()
enter = self._gtk.ButtonImage("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
enter = self._gtk.Button("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
enter.set_hexpand(False)
enter.connect("clicked", self._send_command)