[PATCH 2/2] Render the right arrow based on the widget direction (#1008397)
Chris Lumens
clumens at redhat.com
Tue Sep 17 21:24:22 UTC 2013
> @@ -51,8 +51,11 @@ class LangLocaleHandler(object):
> self._localeSelection = None
>
> def initialize(self):
> - # Render a right arrow for the chosen language
> - self._right_arrow = Gtk.Image.new_from_file("/usr/share/anaconda/pixmaps/right-arrow-icon.png")
> + # Render an arrow for the chosen language
> + if get_default_widget_direction() == Gtk.TextDirection.LTR:
> + self._right_arrow = Gtk.Image.new_from_file("/usr/share/anaconda/pixmaps/right-arrow-icon.png")
> + else:
> + self._right_arrow = Gtk.Image.new_from_file("/usr/share/anaconda/pixmaps/left-arrow-icon.png")
> self._langSelectedColumn.set_cell_data_func(self._langSelectedRenderer,
> self._render_lang_selected)
It'd be a little less confusing to just have the variable named
self._arrow here, but ACK otherwise.
- Chris
More information about the anaconda-patches
mailing list