Changeset 41 for conseil.py

Show
Ignore:
Timestamp:
07/17/06 15:48:46 (2 years ago)
Author:
ploum
Message:

#32 "Assigned to" field doesn't work
#41 Comments not entirely displayed
#46 open bookmark with middle click

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • conseil.py

    r40 r41  
    3030                self.wTree = gtk.glade.XML("conseil.glade") 
    3131                self.bugs_tabs= self.wTree.get_widget("bugs_tabs") 
     32                #hpane = self.wTree.get_widget("hpaned1") 
     33                #hpane.set_property("min-position", 100) 
     34                #self.sidebar_bm=self.wTree.get_widget("bookmarks") 
    3235                #We remove directly the first page 
    3336                # we might want to keep it and remove it at the first action  
     
    4346                        "on_ouvrir1_activate" : self.open_bookmarks } 
    4447                self.wTree.signal_autoconnect(dic) 
     48                #self.sidebar_bm.connect("button_press_event", self.bookmarks_button_press) 
    4549                #Wich BTS are we using ? 
    4650                self.bts = protocol() 
     
    154158                #middle click, we open the bug 
    155159                if event.button == 2 : 
    156                         #self.bookmarkClicked() 
    157                         print "TODO : open the bug on middle click" 
     160                        zetuple = widget.get_selection().get_selected() 
     161                        #Fixme : what if the user didn't click on the tree first ? 
     162                        if zetuple[1] != None : 
     163                                clicked = bookmark(widget,None) 
     164                                self.open_page(clicked) 
     165                         
    158166                #right click menu 
    159167                elif event.button == 3 : 
     
    191199                widget.open_page(clicked) 
    192200 
     201        #open a page in the given widget using clicked, which is a bookmark object 
    193202        def open_page(widget,clicked) : 
    194203                method = clicked.get_method()