Commits

Steve Borho committed 96ff576

hggtk/synch: Add tooltips to --rev and --force

Comments (0)

Files changed (1)

         expander.set_expanded(False)
         hbox = gtk.HBox()
         expander.add(hbox)
+
+        revvbox = gtk.VBox()
+        revhbox = gtk.HBox()
         self._reventry = gtk.Entry()
         self._force = gtk.CheckButton('Force pull or push')
+        self.tips.set_tip(self._force, 'Run even when remote repository'
+                ' is unrelated.')
+
+        revhbox.pack_start(gtk.Label('Target Revision:'), False, False, 2)
+        revhbox.pack_start(self._reventry, True, True, 2)
+        eventbox = gtk.EventBox()
+        eventbox.add(revhbox)
+        self.tips.set_tip(eventbox, 'A specific revision up to which you'
+                ' would like to push or pull.')
+        revvbox.pack_start(eventbox, True, True, 8)
+        revvbox.pack_start(self._force, False, False, 2)
+        hbox.pack_start(revvbox, True, True, 4)
+
         frame = gtk.Frame('Incoming/Outgoing')
+        hbox.pack_start(frame, False, False, 2)
+
         self._showpatch = gtk.CheckButton('Show Patches')
         self._newestfirst = gtk.CheckButton('Show Newest First')
         self._nomerge = gtk.CheckButton('Show No Merges')
 
-        revvbox = gtk.VBox()
-        revhbox = gtk.HBox()
-        revhbox.pack_start(gtk.Label('Target Revision:'), False, False, 2)
-        revhbox.pack_start(self._reventry, True, True, 2)
-        revvbox.pack_start(revhbox, True, True, 8)
-        revvbox.pack_start(self._force, False, False, 2)
-        hbox.pack_start(revvbox, True, True, 4)
-        hbox.pack_start(frame, False, False, 2)
-
         hbox = gtk.HBox()
         hbox.pack_start(self._showpatch, False, False, 2)
         hbox.pack_start(self._newestfirst, False, False, 2)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.