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

status: Disable 'hide rejected chunks' toggle

This breaks win32 gtk, and was confusing anyway.

Changeset cb31dd89f457

Parent f51effe0f069

by Steve Borho

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

Change 1 of 2 Show Entire File hggtk/​status.py Stacked
 
353
354
355
356
357
358
 
 
 
359
360
361
 
421
422
423
 
 
424
425
426
427
428
 
429
430
431
432
433
 
434
435
436
 
353
354
355
 
 
 
356
357
358
359
360
361
 
421
422
423
424
425
426
 
 
 
 
427
428
 
 
 
 
429
430
431
432
@@ -353,9 +353,9 @@
    vbox = gtk.VBox()   visiblerejects = gtk.CheckButton("Hide Rejected Chunks") - visiblerejects.connect('toggled', self._toggle_rejects, diffcol, - diff_hunk_cell) - vbox.pack_start(visiblerejects, False, False, 2) + #visiblerejects.connect('toggled', self._toggle_rejects, diffcol, + # diff_hunk_cell) + #vbox.pack_start(visiblerejects, False, False, 2)   vbox.pack_start(scroller, True, True, 2)   self._toggle_rejects(visiblerejects, diffcol, diff_hunk_cell)   diff_frame.add(vbox) @@ -421,16 +421,12 @@
    def _toggle_rejects(self, widget, diffcol, cell):   diffcol.clear_attributes(cell) + diffcol.add_attribute(cell, 'markup', DM_CHUNK_TEXT) + diffcol.add_attribute(cell, 'cell_background_set', DM_HEADER_CHUNK)   if widget.get_active(): - diffcol.set_attributes(cell, - visible=DM_NOT_REJECTED, - markup=DM_CHUNK_TEXT, - cell_background_set=DM_HEADER_CHUNK) + diffcol.add_attribute(cell, 'visible', DM_NOT_REJECTED)   else: - diffcol.set_attributes(cell, - strikethrough=DM_REJECTED, - markup=DM_CHUNK_TEXT, - cell_background_set=DM_HEADER_CHUNK) + diffcol.add_attribute(cell, 'strikethrough', DM_REJECTED)     def get_extras(self):   table = gtk.Table(rows=2, columns=3)