~xnox/ubiquity/fix-value-errors

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtk_ui.py

  • Committer: Dmitrijs Ledkovs
  • Date: 2012-09-24 10:24:23 UTC
  • mfrom: (5651.1.29 trunk)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20120924102423-hnsl11gra0u43pxg
catch up from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
# with Ubiquity; if not, write to the Free Software Foundation, Inc., 51
32
32
# Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
33
33
 
34
 
from __future__ import print_function
35
 
 
36
34
import sys
37
35
import os
38
36
import subprocess
317
315
                    self.toplevels.add(widget)
318
316
        self.builder.connect_signals(self)
319
317
 
 
318
        # Get the default window background color for the the current
 
319
        # theme and set it as the background for the inline toolbar
 
320
        window_style = self.live_installer.get_style_context()
 
321
        bg = window_style.lookup_color('theme_bg_color')[1].to_string()
 
322
        provider = Gtk.CssProvider()
 
323
        provider.load_from_data(('''\
 
324
            .inline-toolbar.toolbar {
 
325
                background: %s;
 
326
                border-color: transparent;
 
327
                border-width: 0px;
 
328
                padding: 0px;
 
329
            }''' % bg).encode())
 
330
        Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
 
331
            provider, Gtk.STYLE_PROVIDER_PRIORITY_USER)
 
332
 
320
333
        self.stop_debconf()
321
334
        self.translate_widgets(reget=True)
322
335