[ocrfeeder] Fix icons in the BoxEditor's text align buttons
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix icons in the BoxEditor's text align buttons
- Date: Sun, 11 Mar 2018 13:37:49 +0000 (UTC)
commit 218db82cd8597ec49f69dc79ae6729771eff0549
Author: Joaquim Rocha <me joaquimrocha com>
Date: Sat Jul 16 15:30:59 2016 +0100
Fix icons in the BoxEditor's text align buttons
src/ocrfeeder/studio/widgetPresenter.py | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index 09ad1e2..43cc281 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -510,31 +510,27 @@ class BoxEditor(Gtk.ScrolledWindow):
return new_radio_button
def __makeAlignButtons(self):
- icon, label = lib.getIconOrLabel(Gtk.STOCK_JUSTIFY_LEFT, _('Left'))
self.align_left_button = Gtk.RadioToolButton()
- self.align_left_button.set_label(label)
- self.align_left_button.set_icon_widget(icon)
+ self.align_left_button.set_label(_('Left'))
+ self.align_left_button.set_icon_name("format-justify-left")
self.align_left_button.set_tooltip_text(_('Set text to be left aligned'))
- icon, label = lib.getIconOrLabel(Gtk.STOCK_JUSTIFY_CENTER, _('Center'))
self.align_center_button = \
Gtk.RadioToolButton.new_from_widget(self.align_left_button)
- self.align_center_button.set_label(label)
- self.align_center_button.set_icon_widget(icon)
+ self.align_center_button.set_label(_('Center'))
+ self.align_center_button.set_icon_name('format-justify-center')
self.align_center_button.set_tooltip_text(_('Set text to be centered'))
- icon, label = lib.getIconOrLabel(Gtk.STOCK_JUSTIFY_RIGHT, _('Right'))
self.align_right_button = \
Gtk.RadioToolButton.new_from_widget(self.align_left_button)
- self.align_right_button.set_label(label)
- self.align_right_button.set_icon_widget(icon)
+ self.align_right_button.set_label(_('Right'))
+ self.align_right_button.set_icon_name('format-justify-right')
self.align_right_button.set_tooltip_text(_('Set text to be right aligned'))
- icon, label = lib.getIconOrLabel(Gtk.STOCK_JUSTIFY_FILL, _('Fill'))
self.align_fill_button = \
Gtk.RadioToolButton.new_from_widget(self.align_left_button)
- self.align_fill_button.set_label(label)
- self.align_fill_button.set_icon_widget(icon)
+ self.align_fill_button.set_label(_('Fill'))
+ self.align_fill_button.set_icon_name('format-justify-fill')
self.align_fill_button.set_tooltip_text(_('Set text to be fill its area'))
return self.align_left_button, self.align_center_button, self.align_right_button,
self.align_fill_button
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]