Skip to content

Commit

Permalink
Support for markup in header's subtext, which is now properly resizes…
Browse files Browse the repository at this point in the history
… too long texts

modules/bricks: frontend/glade: changed subtext.
  • Loading branch information
g7 committed Jul 2, 2013
1 parent f0c3775 commit 94953ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linstaller/modules/bricks/front/glade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def ready(self):
""" Initialize the GUI. """

if self.is_module_virgin:
self.set_header("info", _("Feature selection"), _("Select features."), appicon="preferences-desktop-default-applications")
self.set_header("info", _("Feature selection"), _("You can further customize those after the installation."), appicon="preferences-desktop-default-applications")

self._objects = {}
self.settings["_objects"] = self._objects # workaround for non_virgin mode
Expand Down
2 changes: 1 addition & 1 deletion linstaller/services/glade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def set_header(self, icon, title, subtitle, appicon=None, toolbarinfo=True):
#GObject.idle_add(self.header_icon.set_from_stock, icon, 6)
# Set header message and window title
GObject.idle_add(self.header_message_title.set_markup, "<b><big>%s</big></b>" % title.replace("& ","&amp; "))
GObject.idle_add(self.header_message_subtitle.set_text, subtitle)
GObject.idle_add(self.header_message_subtitle.set_markup, subtitle)
GObject.idle_add(self.main.set_title, title + " - " + _("%s Installer") % self.main_settings["distro"])

# Set color
Expand Down
2 changes: 2 additions & 0 deletions linstaller/services/glade/base_ui.glade
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
<property name="xalign">0</property>
<property name="xpad">5</property>
<property name="label" translatable="yes">label</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down

0 comments on commit 94953ef

Please sign in to comment.