Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

thgconfig: show item description at the bottom of dialog

This is much more convenient than tooltips, and opens the
door for us to later add URLs for each configurable item

Changeset e24dd34219bc

Parent fee912819a87

by Steve Borho

Changes to one file · Browse files at e24dd34219bc Showing diff from parent fee912819a87 Diff from another changeset...

 
1
2
3
4
 
5
6
7
 
216
217
218
219
 
220
221
222
223
 
 
 
 
 
 
 
 
 
 
224
225
226
 
412
413
414
 
 
 
415
416
417
 
423
424
425
 
426
427
428
 
1
2
3
 
4
5
6
7
 
216
217
218
 
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
 
422
423
424
425
426
427
428
429
430
 
436
437
438
439
440
441
442
@@ -1,7 +1,7 @@
 #_  # Configuration dialog for TortoiseHg and Mercurial  # -# Copyright (C) 2008 Steve Borho <steve@borho.org> +# Copyright (C) 2008-9 Steve Borho <steve@borho.org>  # Copyright (C) 2007 TK Soh <teekaysoh@gmail.com>  #   @@ -216,11 +216,21 @@
  # Create a new notebook, place the position of the tabs   self.notebook = notebook = gtk.Notebook()   notebook.set_tab_pos(gtk.POS_TOP) - self.vbox.pack_start(notebook) + self.vbox.pack_start(notebook, False, False)   notebook.show()   self.show_tabs = True   self.show_border = True   + descframe = gtk.Frame('Description') + vbox = gtk.VBox() + self.desctext = gtk.TextView() + self.desctext.set_wrap_mode(gtk.WRAP_WORD) + self.desctext.set_editable(False) + vbox.pack_start(self.desctext, False, False) + vbox.set_border_width(10) + descframe.add(vbox) + self.vbox.pack_start(descframe, True, True) +   self._btn_apply = gtk.Button("Apply")   self._btn_apply.connect('clicked', self._apply_clicked)   self.action_area.pack_end(self._btn_apply) @@ -412,6 +422,9 @@
  self._delpathbutton.set_sensitive(path_selected)   self._testpathbutton.set_sensitive(repo_available and path_selected)   + def set_help(self, widget, event, tooltip): + self.desctext.get_buffer().set_text(tooltip) +   def fill_frame(self, frame, info):   widgets = []   table = gtk.Table(len(info), 2, False) @@ -423,6 +436,7 @@
  vlist = gtk.ListStore(str, bool)   combo = gtk.ComboBoxEntry(vlist, 0)   combo.connect("changed", self.dirty_event) + combo.child.connect("focus-in-event", self.set_help, tooltip)   combo.set_row_separator_func(lambda model, path: model[path][1])   widgets.append(combo)