Since 1231856 has been fixed we no longer run the Anaconda window in fullscreen. This has the side effect of showing the titlebar unless disabled by a configuration hack in the window manager. This works for Anaconda running in the installation environment but Initial Setup, which is running after the installation on the installed system still has the titlebar with the ugly "__init__.py" default text.
The patch sets the titlebar text to "", so while the titlebar will still be there in Initial Setup, it at least won't have the ugly default text text.
BTW, I thin that also any attempt to run the Anaconda GUI manually, such as for image building, will also result in the ugly titlebar text. So the patch should also help for this use case.
Martin Kolman (1): Disable text on titlebar (#1267203)
pyanaconda/ui/gui/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+)
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@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)
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@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.
anaconda-patches@lists.fedorahosted.org