Ticket #347: pippy_res_347.patch
File pippy_res_347.patch, 2.4 KB (added by joleary, 15 years ago) |
---|
-
pippy_app.py
old new 83 83 # Main layout. 84 84 hbox = gtk.HBox() 85 85 vbox = gtk.VBox() 86 hpane1 = gtk.HPaned() 87 vpane1 = gtk.VPaned() 86 88 87 89 # The sidebar. 88 90 sidebar = gtk.VBox() … … 98 100 scrolled = gtk.ScrolledWindow() 99 101 scrolled.add(treeview) 100 102 sidebar.pack_start(scrolled) 101 h box.pack_start(sidebar)103 hpane1.pack1(sidebar,True,False) 102 104 103 105 root = os.path.join(get_bundle_path(), 'data') 104 106 for d in sorted(os.listdir(root)): … … 161 163 codesw.set_policy(gtk.POLICY_AUTOMATIC, 162 164 gtk.POLICY_AUTOMATIC) 163 165 codesw.add(self.text_view) 164 v box.pack_start(codesw)166 vpane1.pack1(codesw,True,True) 165 167 166 168 # An hbox for the buttons 167 169 buttonhbox = gtk.HBox() … … 172 174 gobutton = gtk.Button(label=_("_Run!")) 173 175 gobutton.set_image(goicon) 174 176 gobutton.connect('clicked', self.gobutton_cb) 175 gobutton.set_size_request(650, 2)177 gobutton.set_size_request(650, 45) 176 178 buttonhbox.pack_start(gobutton) 177 179 178 180 # The "stop" button 179 181 stopbutton = gtk.Button(stock=gtk.STOCK_STOP) 180 182 stopbutton.connect('clicked', self.stopbutton_cb) 181 stopbutton.set_size_request(200, 2)183 stopbutton.set_size_request(200, 45) 182 184 buttonhbox.pack_start(stopbutton) 183 185 184 186 # The "clear" button 185 187 clearbutton = gtk.Button(stock=gtk.STOCK_CLEAR) 186 188 clearbutton.connect('clicked', self.clearbutton_cb) 187 clearbutton.set_size_request(150, 2)189 clearbutton.set_size_request(150, 45) 188 190 buttonhbox.pack_end(clearbutton) 189 191 190 vbox.pack_start(buttonhbox )192 vbox.pack_start(buttonhbox,False,False,0) 191 193 192 194 # An hbox to hold the vte window and its scrollbar. 193 195 outbox = gtk.HBox() … … 213 215 outsb = gtk.VScrollbar(self._vte.get_adjustment()) 214 216 outsb.show() 215 217 outbox.pack_start(outsb, False, False, 0) 216 vbox.pack_end(outbox) 217 hbox.pack_end(vbox) 218 self.set_canvas(hbox) 218 vbox.pack_end(outbox,True,True,0) 219 vpane1.pack2(vbox,True,True) 220 hpane1.pack2(vpane1,True,True) 221 self.set_canvas(hpane1) 219 222 self.show_all() 220 223 221 224