aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-18 23:27:51 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-18 23:27:51 +0200
commit5d54b6aca7f1d1b9f63dc7792b2765c1ca91d628 (patch)
tree4ca4b4befce904f3597c173f164e45f65529c484 /src
parentcd2de8b5a8779f6019a19cf875410568f71a4062 (diff)
downloadarctica-greeter-5d54b6aca7f1d1b9f63dc7792b2765c1ca91d628.tar.gz
arctica-greeter-5d54b6aca7f1d1b9f63dc7792b2765c1ca91d628.tar.bz2
arctica-greeter-5d54b6aca7f1d1b9f63dc7792b2765c1ca91d628.zip
session list's back button: Make background transparent.
Diffstat (limited to 'src')
-rw-r--r--src/main-window.vala17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main-window.vala b/src/main-window.vala
index 13b26ad..65dde2b 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -121,8 +121,25 @@ public class MainWindow : Gtk.Window
var image = new Gtk.Image.from_file (Path.build_filename (Config.PKGDATADIR, "arrow_left.png", null));
image.show ();
back_button.set_size_request (grid_size - GreeterList.BORDER * 2, grid_size - GreeterList.BORDER * 2);
+
+ try
+ {
+ var style = new Gtk.CssProvider ();
+ style.load_from_data ("* {background-color: transparent;
+ %s
+ }".printf(shadow_style), -1);
+ var context = back_button.get_style_context();
+ context.add_provider (style,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+ }
+ catch (Error e)
+ {
+ debug ("Internal error loading back button style: %s", e.message);
+ }
+
back_button.add (image);
back_button.clicked.connect (pop_list);
+
align.add (back_button);
align = new Gtk.Alignment (0.0f, 0.5f, 0.0f, 1.0f);