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

cslist: support resizing of the item list

Changeset d3cf7edd83ee

Parent eab27155da8c

by Yuki KODAMA

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

 
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
 
791
792
793
 
 
 
 
 
 
 
 
 
 
 
 
 
 
794
795
796
797
798
 
357
358
359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
361
362
 
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
 
795
796
797
@@ -357,20 +357,6 @@
  def after_init(self):   self.statusbox.pack_start(self.allbtn, False, False, 4)   - # prepare for auto-scrolling while DnD - SIZE = 20 - alloc = self.scroll.child.allocation - self.areas = {} - def add(name, arg): - region = gtk.gdk.region_rectangle(arg) - self.areas[name] = (region, gtk.gdk.Rectangle(*arg)) - add('top', (0, 0, alloc.width, SIZE)) - add('right', (alloc.width - SIZE, 0, SIZE, alloc.height)) - add('bottom', (0, alloc.height - SIZE, alloc.width, SIZE)) - add('left', (0, 0, SIZE, alloc.height)) - add('center', (SIZE, SIZE, alloc.width - 2 * SIZE, - alloc.height - 2 * SIZE)) -   def update_status(self, updating=False):   numshow = numsel = numtotal = all = None   if self.curitems is None: @@ -791,8 +777,21 @@
  # get pressed csinfo widget based on pointer position   pos = self.get_item_pos(event.y)   if pos is not None: + # prepare for auto-scrolling while DnD + W = 20 + alloc = self.scroll.child.allocation + self.areas = {} + def add(name, arg): + region = gtk.gdk.region_rectangle(arg) + self.areas[name] = (region, gtk.gdk.Rectangle(*arg)) + add('top', (0, 0, alloc.width, W)) + add('right', (alloc.width - W, 0, W, alloc.height)) + add('bottom', (0, alloc.height - W, alloc.width, W)) + add('left', (0, 0, W, alloc.height)) + add('center', (W, W, alloc.width - 2 * W, + alloc.height - 2 * W)) + # start dnd   self.item_drag = pos - # start dnd   self.csevent.drag_begin(self.dnd_targets,   gtk.gdk.ACTION_MOVE, 1, event)