diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-21 17:47:18 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-21 19:40:03 +0200 |
commit | bf0db8aa881fbcd85068ec55722cb8d726fe9a13 (patch) | |
tree | a445a6cbb0ded6e1102934690adbb2dae795b662 /src/dash-entry.vala | |
parent | ec5e539809ec8d2bcdfbdfb70d080fc5edd217ea (diff) | |
download | arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.tar.gz arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.tar.bz2 arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.zip |
Rebase against Unity Greeter from Ubuntu 15.04
Diffstat (limited to 'src/dash-entry.vala')
-rw-r--r-- | src/dash-entry.vala | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/dash-entry.vala b/src/dash-entry.vala index 634dd16..b8aab69 100644 --- a/src/dash-entry.vala +++ b/src/dash-entry.vala @@ -47,8 +47,6 @@ public class DashEntry : Gtk.Entry, Fadable } } - private static const string NO_BORDER_CLASS = "arctica-greeter-no-border"; - protected FadeTracker fade_tracker { get; protected set; } private Gdk.Window arrow_win; private static Gdk.Pixbuf arrow_pixbuf; @@ -89,27 +87,6 @@ public class DashEntry : Gtk.Entry, Fadable { debug ("Internal error loading padding style: %s", e.message); } - - // We add the styles and classes we need for normal operation of the - // spinner animation. These are always "on" and we just turn them off - // right before drawing our parent class's draw function. This is done - // opt-out like that rather than just turning the styles on when we - // need to draw the spinner because the animation doesn't work right - // otherwise. See the draw() function for how we turn it off. - var no_border_provider = new Gtk.CssProvider (); - try - { - var css = ".%s {border: 0px;}".printf (NO_BORDER_CLASS); - no_border_provider.load_from_data (css, -1); - } - catch (Error e) - { - debug ("Internal error loading spinner style: %s", e.message); - } - style_ctx.add_provider (no_border_provider, - Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - style_ctx.add_class (NO_BORDER_CLASS); - style_ctx.add_class (Gtk.STYLE_CLASS_SPINNER); } public override bool draw (Cairo.Context c) @@ -119,7 +96,6 @@ public class DashEntry : Gtk.Entry, Fadable // See construct method for explanation of why we remove classes style_ctx.save (); style_ctx.remove_class (Gtk.STYLE_CLASS_SPINNER); - style_ctx.remove_class (NO_BORDER_CLASS); c.save (); c.push_group (); base.draw (c); |