aboutsummaryrefslogtreecommitdiff
path: root/src/prompt-box.vala
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-19 14:33:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-10-27 17:02:38 +0100
commit4bfa70ab27d3bdd524e9ec97f914c918cd2f4729 (patch)
tree1afcf6dd897d666d932f67768843bcbda092205f /src/prompt-box.vala
parenta7e3214d605965b286c55a08a709aa071453cab6 (diff)
downloadarctica-greeter-4bfa70ab27d3bdd524e9ec97f914c918cd2f4729.tar.gz
arctica-greeter-4bfa70ab27d3bdd524e9ec97f914c918cd2f4729.tar.bz2
arctica-greeter-4bfa70ab27d3bdd524e9ec97f914c918cd2f4729.zip
Add class name for option button
Ported to ArcticaGreeter: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'src/prompt-box.vala')
-rw-r--r--src/prompt-box.vala12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index af3994f..e77e0d6 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -201,6 +201,7 @@ public class PromptBox : FadableBox
name_grid.attach (align, COL_NAME_MESSAGE, ROW_NAME, 1, 1);
option_button = new FlatButton ();
+ option_button.get_style_context ().add_class ("option-button");
option_button.hexpand = true;
option_button.halign = Gtk.Align.END;
option_button.valign = Gtk.Align.START;
@@ -212,16 +213,7 @@ public class PromptBox : FadableBox
option_button.clicked.connect (option_button_clicked_cb);
option_image = new CachedImage (null);
option_image.show ();
- try
- {
- var style = new Gtk.CssProvider ();
- style.load_from_data ("* {padding: 2px;}", -1);
- option_button.get_style_context ().add_provider (style, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
- }
- catch (Error e)
- {
- debug ("Internal error loading session chooser style: %s", e.message);
- }
+
option_button.add (option_image);
name_grid.attach (option_button, COL_NAME_OPTIONS, ROW_NAME, 1, 1);