[gnome-boxes] topbar: Add missing arrow from selection menubutton
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] topbar: Add missing arrow from selection menubutton
- Date: Wed, 21 May 2014 19:14:29 +0000 (UTC)
commit d3a8e8430ff732cbe2a748ad0ad0add5bedecd91
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed May 21 20:13:16 2014 +0100
topbar: Add missing arrow from selection menubutton
https://bugzilla.gnome.org/show_bug.cgi?id=727176
data/ui/topbar.ui | 35 +++++++++++++++++++++++++++++++++++
src/topbar.vala | 6 +++---
2 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/topbar.ui b/data/ui/topbar.ui
index fadcc9c..0f6e94f 100644
--- a/data/ui/topbar.ui
+++ b/data/ui/topbar.ui
@@ -151,6 +151,41 @@
<property name="valign">center</property>
<property name="menu-model">selection-menu</property>
+ <child>
+ <object class="GtkGrid" id="selection_menu_button_grid">
+ <property name="visible">True</property>
+ <property name="column-spacing">6</property>
+
+ <child>
+ <object class="GtkLabel" id="selection_menu_button_label">
+ <property name="visible">True</property>
+ </object>
+
+ <packing>
+ <property name="left-attach">0</property>
+ <property name="top-attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+
+ <child>
+ <object class="GtkArrow" id="selection_menu_button_arrow">
+ <property name="visible">True</property>
+ <property name="arrow-type">down</property>
+ <property name="shadow-type">none</property>
+ </object>
+
+ <packing>
+ <property name="left-attach">1</property>
+ <property name="top-attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+
<style>
<class name="selection-menu"/>
</style>
diff --git a/src/topbar.vala b/src/topbar.vala
index 08e75f2..344008f 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -41,7 +41,7 @@ private class Boxes.Topbar: Gtk.Stack, Boxes.UI {
[GtkChild]
private Gtk.Button new_btn;
[GtkChild]
- private Gtk.MenuButton selection_menu_button;
+ private Gtk.Label selection_menu_button_label;
[GtkChild]
private Gtk.HeaderBar collection_toolbar;
[GtkChild]
@@ -168,9 +168,9 @@ private class Boxes.Topbar: Gtk.Stack, Boxes.UI {
if (items > 0) {
// This goes with the "Click on items to select them" string and is about selection of items
(boxes)
// when the main collection view is in selection mode.
- selection_menu_button.label = ngettext ("%d selected", "%d selected", items).printf (items);
+ selection_menu_button_label.label = ngettext ("%d selected", "%d selected", items).printf
(items);
} else {
- selection_menu_button.label = _("(Click on items to select them)");
+ selection_menu_button_label.label = _("(Click on items to select them)");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]