~gary-lasker/software-center/tos-simple-fix

« back to all changes in this revision

Viewing changes to softwarecenter/app.py

  • Committer: Gary Lasker
  • Date: 2010-08-31 19:39:21 UTC
  • mfrom: (1082.3.1 pathbar-fix)
  • Revision ID: gary.lasker@canonical.com-20100831193921-odzw3inkhpvxgu8d
merge lp:~mmcg069/software-center/misbehaving-pathbar-fix, fixes
pathbar no longer shrinking to available width (LP: #625210),
many thanks Matthew McGowan!

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
        self._block_menuitem_view = False
190
190
        self._available_items_for_page = {}
191
191
 
 
192
        # hackery, paint viewport borders around notebook
 
193
        self.notebook_view.set_border_width(1)
 
194
        self.notebook_view.connect('expose-event', self._on_notebook_expose)
 
195
 
192
196
        # register view manager and create view panes/widgets
193
197
        self.view_manager = ViewManager(self.notebook_view)
194
198
        
723
727
            return
724
728
        if view.dialogs.confirm_repair_broken_cache(self.window_main, self.datadir):
725
729
            self.backend.fix_broken_depends()
726
 
        
 
730
 
 
731
    def _on_notebook_expose(self, widget, event):
 
732
        # use availabel pane as the Style source so viewport colours are the same
 
733
        # as a real Viewport
 
734
        self.available_pane.style.paint_shadow(widget.window,
 
735
                                    gtk.STATE_NORMAL,
 
736
                                    gtk.SHADOW_IN,
 
737
                                    event.area,
 
738
                                    widget,
 
739
                                    'viewport',
 
740
                                    widget.allocation.x,
 
741
                                    widget.allocation.y,
 
742
                                    widget.allocation.width,
 
743
                                    widget.allocation.height)
 
744
        return
 
745
 
727
746
    def _on_apt_cache_broken(self, aptcache):
728
747
        self._ask_and_repair_broken_cache()
729
748