/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to ui.py

  • Committer: Curtis Hovey
  • Date: 2012-02-27 16:51:13 UTC
  • mto: (776.2.1 ui-factory)
  • mto: This revision was merged to the branch mainline in revision 779.
  • Revision ID: sinzui.is@verizon.net-20120227165113-w9lb9mybmq9etk2k
Updated ProgressPanel to Gtk 3.0 Gtk.Box.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        self.set_resizable(False)
121
121
 
122
122
 
123
 
class ProgressPanel(ProgressContainerMixin, Gtk.HBox):
 
123
class ProgressPanel(ProgressContainerMixin, Gtk.Box):
124
124
 
125
125
    def __init__(self):
126
 
        super(ProgressPanel, self).__init__()
 
126
        super(ProgressPanel, self).__init__(Gtk.Orientation.HORIZONTAL, 5)
127
127
        image_loading = Gtk.Image.new_from_stock(Gtk.STOCK_REFRESH,
128
128
                                                 Gtk.IconSize.BUTTON)
129
129
        image_loading.show()
130
130
 
131
131
        self.pb = GtkProgressBar()
132
 
        self.set_spacing(5)
133
132
        self.set_border_width(5)
134
133
        self.pack_start(image_loading, False, False, 0)
135
134
        self.pack_start(self.pb, True, True, 0)