[meld] ui.statusbar: Improve popover appearance and remove clear button



commit 439a6dd8a81f30d375262988bc87c3cc172a8b0d
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Nov 25 06:34:12 2017 +1000

    ui.statusbar: Improve popover appearance and remove clear button
    
    There's really no point to a clear button here; we pre-fill and
    pre-select the contents, and clearing a line number is pointless.

 meld/ui/statusbar.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/ui/statusbar.py b/meld/ui/statusbar.py
index 86519c3..ba74f41 100644
--- a/meld/ui/statusbar.py
+++ b/meld/ui/statusbar.py
@@ -181,17 +181,17 @@ class MeldStatusBar(Gtk.Statusbar):
             self.emit('go-to-line', max(0, line - 1))
 
         entry = Gtk.Entry()
+        entry.set_tooltip_text(_('Line you want to move the cursor to'))
         entry.set_icon_from_icon_name(
             Gtk.EntryIconPosition.PRIMARY, 'go-jump-symbolic')
         entry.set_icon_activatable(Gtk.EntryIconPosition.PRIMARY, False)
-        entry.set_icon_from_icon_name(
-            Gtk.EntryIconPosition.SECONDARY, 'edit-clear-symbolic')
         entry.set_input_purpose(Gtk.InputPurpose.DIGITS)
         entry.connect('map', line_entry_mapped)
         entry.connect('insert-text', line_entry_insert_text)
         entry.connect('activate', line_entry_activated)
 
         selector = Gtk.Grid()
+        selector.set_border_width(6)
         selector.add(entry)
         selector.show_all()
 


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