[gnome-tweak-tool] Make the startup application dialog look like a normal dialog



commit a4c794f5fd898f4ada89d77d7005a2d1369e6fe5
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Tue Sep 10 11:06:48 2013 +0200

    Make the startup application dialog look like a normal dialog
    
    If it quacks like a dialog, then it should also look like a dialog,
    which means no headerbar (regular titlebar instead), and a Close
    button at the bottom.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707837

 gtweak/tweaks/tweak_group_startup.py |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index 791cf13..adeea11 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -32,7 +32,7 @@ def _list_header_func(row, before, user_data):
 
 class _AppChooser(Gtk.Dialog):
     def __init__(self, main_window, running_exes):
-        Gtk.Dialog.__init__(self)
+        Gtk.Dialog.__init__(self, title=_("Applications"))
 
         self._running = {}
         self._all = {}
@@ -57,13 +57,9 @@ class _AppChooser(Gtk.Dialog):
         sw.props.hscrollbar_policy = Gtk.PolicyType.NEVER
         sw.add(lb)
 
+        self.add_button(_("_Close"), Gtk.ResponseType.CLOSE)
         self.add_button(_("Add Application"), Gtk.ResponseType.OK)
 
-        hb = Gtk.HeaderBar()
-        hb.props.show_close_button = True
-        hb.props.title = _("Applications")
-        self.set_titlebar(hb)
-
         self.get_content_area().pack_start(sw, True, True, 0)
         self.set_modal(True)
         self.set_transient_for(main_window)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]