~mmcg069/software-center/small-fix

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/widgets/backforward.py

  • Committer: Matthew McGowan
  • Date: 2011-08-28 11:53:54 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110828115354-pdpry08yf8diz74j
make the section sel button paint using the Gtk.Button paint routine

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        #~ self.set_name("backforward")
124
124
        self.set_relief(Gtk.ReliefStyle.NORMAL)
125
125
        self.arrow_type = arrow_type
126
 
        arrow = Gtk.Arrow.new(arrow_type, Gtk.ShadowType.OUT)
127
 
        arrow.set_margin_top(2)
128
 
        arrow.set_margin_bottom(2)
 
126
 
 
127
        if self.arrow_type == Gtk.ArrowType.LEFT:
 
128
            arrow = Gtk.Image.new_from_icon_name('stock_left',
 
129
                                                 Gtk.IconSize.BUTTON)
 
130
        elif self.arrow_type == Gtk.ArrowType.RIGHT:
 
131
            arrow = Gtk.Image.new_from_icon_name('stock_right',
 
132
                                                 Gtk.IconSize.BUTTON)
 
133
 
 
134
        #~ arrow = Gtk.Arrow.new(arrow_type, Gtk.ShadowType.OUT)
 
135
        #~ arrow.set_margin_top(2)
 
136
        #~ arrow.set_margin_bottom(2)
129
137
        arrow.set_margin_left(2)
130
138
        arrow.set_margin_right(2)
131
139
        self.add(arrow)