[gnome-boxes] selectionbar: Make buttons vertically centered
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] selectionbar: Make buttons vertically centered
- Date: Mon, 2 Sep 2013 20:22:48 +0000 (UTC)
commit 4a56931e52b5671764af7a6a3041e0564e2b0542
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Mon Sep 2 20:54:08 2013 +0300
selectionbar: Make buttons vertically centered
https://bugzilla.gnome.org/show_bug.cgi?id=707296
src/selectionbar.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index 6c6af72..3e69a26 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -19,6 +19,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
favorite_btn = new Gtk.ToggleButton ();
headerbar.pack_start (favorite_btn);
favorite_btn.image = new Gtk.Image.from_icon_name ("emblem-favorite-symbolic", Gtk.IconSize.MENU);
+ favorite_btn.valign = Gtk.Align.CENTER;
favorite_btn.get_style_context ().add_class ("image-button");
favorite_btn_clicked_handler = favorite_btn.clicked.connect (() => {
foreach (var item in App.app.selected_items) {
@@ -32,6 +33,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
});
pause_btn = new Gtk.Button.with_mnemonic (_("P_ause"));
+ pause_btn.valign = Gtk.Align.CENTER;
headerbar.pack_start (pause_btn);
pause_btn.get_style_context ().add_class ("text-button");
pause_btn.clicked.connect (() => {
@@ -53,6 +55,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
});
remove_btn = new Gtk.Button.with_mnemonic (_("_Delete"));
+ remove_btn.valign = Gtk.Align.CENTER;
headerbar.pack_start (remove_btn);
remove_btn.get_style_context ().add_class ("text-button");
remove_btn.clicked.connect (() => {
@@ -60,6 +63,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
});
properties_btn = new Gtk.Button.with_mnemonic (_("_Properties"));
+ properties_btn.valign = Gtk.Align.CENTER;
headerbar.pack_end (properties_btn);
properties_btn.get_style_context ().add_class ("text-button");
properties_btn.clicked.connect (() => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]