Skip to content

Commit 54b3830

Browse files
committed
SlideList: Make the "Add a Slide" button full size
1 parent ec5f0bb commit 54b3830

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Widgets/SlideList.vala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ public class Spice.SlideList : Gtk.Grid {
4444
};
4545
scrollbox.add (slides_list);
4646

47-
var new_slide_button = new Gtk.Button.from_icon_name ("list-add-symbolic", Gtk.IconSize.SMALL_TOOLBAR) {
47+
var new_slide_button = new Gtk.Button.with_label (_("Add a Slide")) {
4848
always_show_image = true,
49-
label = _("Add a Slide"),
5049
margin_top = 3,
5150
margin_bottom = 3,
52-
tooltip_markup = Utils.get_accel_tooltip (Window.ACTION_NEW_SLIDE, "")
51+
hexpand = true,
52+
image = new Gtk.Image.from_icon_name ("list-add-symbolic", Gtk.IconSize.MENU),
53+
tooltip_markup = Utils.get_accel_tooltip (Window.ACTION_NEW_SLIDE, ""),
54+
xalign = 0
5355
};
56+
5457
new_slide_button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
5558

5659
var actionbar = new Gtk.ActionBar ();

0 commit comments

Comments
 (0)