From 4bfa70ab27d3bdd524e9ec97f914c918cd2f4729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Thu, 19 Feb 2015 14:33:16 +0200 Subject: Add class name for option button Ported to ArcticaGreeter: Mike Gabriel --- src/prompt-box.vala | 12 ++---------- 1 file 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); -- cgit v1.2.3