[PATCH] Disable text on titlebar (#1267203)

Jiří Konečný jkonecny at redhat.com
Fri Oct 2 13:25:32 UTC 2015


On Fri, 2015-10-02 at 15:14 +0200, Martin Kolman wrote:
> The titlebar is not shown in the installation environment due
> to a specific window manager configuration supplied by Lorax during
> the installation image build.
> 
> Unfortunately the header does show up when Initial Setup is running
> on the installed system, where the specific window manager
> configuration
> used by Anaconda is not available and the titlebar shows the ugly
> default
> "__init__.py" text.
> 
> So set the titlebar text to "" so that titlebar is blank.
> 
> Resolves: rhbz#1267203
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  pyanaconda/ui/gui/__init__.py | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/pyanaconda/ui/gui/__init__.py
> b/pyanaconda/ui/gui/__init__.py
> index 5634d7e..e7c02b2 100644
> --- a/pyanaconda/ui/gui/__init__.py
> +++ b/pyanaconda/ui/gui/__init__.py
> @@ -382,6 +382,12 @@ class MainWindow(Gtk.Window):
>          # needed to interact with the window manager, like the GNOME
> top bar.
>          self.set_hide_titlebar_when_maximized(True)
>  
> +        # The Anaconda and Initial Setup windows might sometimes get
> decorated with
> +        # a titlebar which contains the __init__.py header text by
> default.
> +        # As all Anaconda and Initial Setup usually have a very
> distinct title text
> +        # inside the window, the titlebar text is redundant and
> should be disabled.
> +        self.set_title("")
> +
>          # Treat an attempt to close the window the same as hitting
> quit
>          self.connect("delete-event", self._on_delete_event)
>  
Ack.


More information about the anaconda-patches mailing list