[gnome-boxes] Use a simple select_btn ToolButton
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Use a simple select_btn ToolButton
- Date: Wed, 13 Jun 2012 14:08:33 +0000 (UTC)
commit 989e1f2901cd6af34673e1653f14017442437722
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Sat Jun 9 01:28:25 2012 +0200
Use a simple select_btn ToolButton
https://bugzilla.gnome.org/show_bug.cgi?id=677739
src/topbar.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/topbar.vala b/src/topbar.vala
index b584f41..e43753a 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -19,7 +19,7 @@ private class Boxes.Topbar: Boxes.UI {
public Notebook notebook;
private Gtk.Spinner spinner;
- private Gtk.ToggleToolButton select_btn;
+ private Gtk.ToolButton select_btn;
private Gtk.ToolButton cancel_btn;
private Gtk.ToolButton spinner_btn;
private Gtk.ToolButton back_btn;
@@ -86,7 +86,7 @@ private class Boxes.Topbar: Boxes.UI {
spinner_btn.get_style_context ().add_class ("raised");
toolbar_end.insert (spinner_btn, 0);
- select_btn = new Gtk.ToggleToolButton ();
+ select_btn = new Gtk.ToolButton (null, null);
select_btn.icon_name = "emblem-default-symbolic";
select_btn.get_style_context ().add_class ("raised");
select_btn.valign = Gtk.Align.CENTER;
@@ -127,7 +127,6 @@ private class Boxes.Topbar: Boxes.UI {
cancel_btn.valign = Gtk.Align.CENTER;
toolbar_selection.insert (cancel_btn, 1);
cancel_btn.clicked.connect (() => {
- select_btn.active = false;
App.app.selection_mode = false;
notebook.page = TopbarPage.COLLECTION;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]