~gary-lasker/software-center/list-view-stars-gtk3

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/panes/globalpane.py

  • Committer: Michael Vogt
  • Date: 2011-08-02 08:30:26 UTC
  • mfrom: (1917.9.26 the-aesthetics)
  • Revision ID: michael.vogt@ubuntu.com-20110802083026-rvx4cxg7o2j232l8
merged from lp:~mmcg069/software-center/the-aesthetics with some minor tweaks (disable JS and plugins in webkit, set datadir globally in symbolic_icons tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
    def __init__(self, view_manager, datadir, db, cache, icons):
27
27
        Gtk.VBox.__init__(self)
28
 
        self.top_hbox = Gtk.HBox(spacing=StockEms.SMALL)
29
 
        self.top_hbox.set_border_width(self.PADDING)
 
28
 
 
29
        alignment = Gtk.Alignment()
 
30
        alignment.set_padding(0, 0, StockEms.SMALL, StockEms.SMALL)
 
31
 
 
32
        self.top_hbox = Gtk.HBox(spacing=StockEms.MEDIUM)
 
33
        alignment.add(self.top_hbox)
30
34
        # add nav history back/forward buttons...
31
35
        # note:  this is hacky, would be much nicer to make the custom self/right
32
36
        # buttons in BackForwardButton to be Gtk.Activatable/Gtk.Widgets, then wire in the
34
38
        # but couldn't seem to get this to work..so just wire things up directly
35
39
        vm = get_viewmanager()
36
40
        self.back_forward = vm.get_global_backforward()
37
 
        self.top_hbox.pack_start(self.back_forward, False, True, 0)
 
41
        a = Gtk.Alignment.new(0.5, 0.5, 1.0, 0.0)
 
42
        a.add(self.back_forward)
 
43
        self.top_hbox.pack_start(a, False, True, 0)
38
44
 
39
45
        self.view_switcher = ViewSwitcher(view_manager, datadir, db, cache, icons)
40
46
        self.top_hbox.pack_start(self.view_switcher, True, True, 0)
42
48
        #~ self.init_atk_name(self.searchentry, "searchentry")
43
49
        self.searchentry = vm.get_global_searchentry()
44
50
        self.top_hbox.pack_end(self.searchentry, False, True, 0)
45
 
        self.pack_start(self.top_hbox, False, True, 0)
 
51
        self.pack_start(alignment, False, True, 0)
46
52
 
47
53
        self._cache_art_assets()
48
54
        self.connect("draw", self.on_draw, self._asset_cache)