/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/style.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-09 13:00:41 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140609130041-mn6cn3ogqw22jsas
* made the functions look more alike...
  ie: more glib-ish...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of GPump, a Pump.io client.
2
 
 *
3
 
 * GPump (THE SOFTWARE) is made available under the terms and conditions of the
4
 
 * GNU Lesser General Public Licence 3.0. A copy of the licence can be read
5
 
 * in the file lgpl-3.0.txt in the root of this project.
6
 
 */
7
 
 
8
 
/** @file
9
 
 * This file is not in use right now. included for future use.
10
 
 */
11
 
 
12
 
const Gdk = imports.gi.Gdk;
13
 
const Gtk = imports.gi.Gtk;
14
 
 
15
 
const css_style = "\n";
16
 
 
17
 
function load_css () {
18
 
  let provider = new Gtk.CssProvider ();
19
 
  provider.load_from_data (css_style);
20
 
  Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
21
 
                                           provider,
22
 
                                           Gtk.STYLE_PROVIDER_PRIORITY_USER);
23
 
}