Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

cslist: make csinfo widgets selectable

Note that 'selectable' feature conflicts with 'drag & drop' feature,
so if you use 'selectable', you must turn off 'drag & drop'.

Changeset 5dc5132e4d41

Parent 4fc44b9efe1e

by Yuki KODAMA

Changes to one file · Browse files at 5dc5132e4d41 Showing diff from parent 4fc44b9efe1e Diff from another changeset...

 
154
155
156
157
158
159
160
 
 
 
 
 
161
162
163
 
625
626
627
 
 
628
629
630
 
154
155
156
 
 
 
 
157
158
159
160
161
162
163
164
 
626
627
628
629
630
631
632
633
@@ -154,10 +154,11 @@
  raise csinfo.UnknownItem(item)   self.custom = csinfo.custom(data=data_func, label=label_func,   markup=markup_func) - self.lstyle = csinfo.labelstyle(contents=('%(item_l)s:', - ' %(branch)s', ' %(tags)s', ' %(summary)s')) - self.pstyle = csinfo.panelstyle(contents=('item',) + \ - csinfo.PANEL_DEFAULT[1:]) + self.lstyle = csinfo.labelstyle(selectable=True, + contents=('%(item_l)s:', ' %(branch)s', + ' %(tags)s', ' %(summary)s')) + self.pstyle = csinfo.panelstyle(selectable=True, + contents=('item',) + csinfo.PANEL_DEFAULT[1:])     # prepare to show   gtklib.idle_add_single_call(self.after_init) @@ -625,6 +626,8 @@
  sep = self.create_sep()   wrapbox.pack_start(sep, False, False)   style = self.get_compact_view() and self.lstyle or self.pstyle + if self.dnd_enable: + style['selectable'] = False   info = self.curfactory(item, style)   if self.sel_enable:   check = gtk.CheckButton()