~donadigo/switchboard-plug-networking/hotspot

« back to all changes in this revision

Viewing changes to src/Widgets/WifiInterface.vala

  • Committer: Adam Bieńkowski
  • Date: 2015-11-07 23:33:35 UTC
  • Revision ID: donadigos159@gmail.com-20151107233335-pm8788k44r9erw1s
Don't use CssProvider

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
            info_box.margin = 12;
41
41
            this.init (_device, info_box);
42
42
 
43
 
            var css_provider = new Gtk.CssProvider ();
44
 
            try {
45
 
                css_provider.load_from_data ("GtkFrame {\nbackground: #ffffff;\n}", -1);
46
 
            } catch (Error e) {
47
 
                warning ("%s\n", e.message);
48
 
            }
49
 
 
50
43
            popover = new Gtk.Popover (info_btn);
51
44
            popover.position = Gtk.PositionType.BOTTOM;
52
45
            popover.add (info_box);
55
48
            });
56
49
 
57
50
            connected_frame = new Gtk.Frame (null);
58
 
            connected_frame.get_style_context ().add_provider (css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
 
51
            connected_frame.override_background_color (0, { 255, 255, 255, 255 });
59
52
 
60
53
            top_revealer = new Gtk.Revealer ();
61
54
            top_revealer.transition_type = Gtk.RevealerTransitionType.SLIDE_DOWN;