[gnome-boxes] selectionbar: Drop Properties button



commit 534d3f010115b1bdd81b63df0a289c896508fe58
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri May 22 17:27:20 2015 +0100

    selectionbar: Drop Properties button
    
    Not only this is available in both context menu and hamburger (display)
    menu, this is the only single item action in the selection mode and
    selection mode is meant for multiple item actions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710295

 data/ui/selectionbar.ui |   18 ------------------
 src/selectionbar.vala   |   14 --------------
 2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/data/ui/selectionbar.ui b/data/ui/selectionbar.ui
index cff9a92..550dc70 100644
--- a/data/ui/selectionbar.ui
+++ b/data/ui/selectionbar.ui
@@ -81,24 +81,6 @@
           </packing>
         </child>
 
-        <!-- Properties button -->
-        <child>
-          <object class="GtkButton" id="properties_btn">
-            <property name="visible">True</property>
-            <property name="valign">center</property>
-            <property name="use-underline">True</property>
-            <property name="label" translatable="yes">_Properties</property>
-            <signal name="clicked" handler="on_properties_btn_clicked"/>
-            <style>
-              <class name="text-button"/>
-            </style>
-          </object>
-
-          <packing>
-            <property name="pack-type">end</property>
-          </packing>
-        </child>
-
       </object>
     </child>
   </template>
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index 583b84d..2832006 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -10,8 +10,6 @@ private class Boxes.Selectionbar: Gtk.Revealer {
     [GtkChild]
     private Gtk.Button remove_btn;
     [GtkChild]
-    private Gtk.Button properties_btn;
-    [GtkChild]
     private Gtk.Button open_btn;
 
     private AppWindow window;
@@ -19,7 +17,6 @@ private class Boxes.Selectionbar: Gtk.Revealer {
     construct {
         App.app.notify["selected-items"].connect (() => {
             update_favorite_btn ();
-            update_properties_btn ();
             update_pause_btn ();
             update_delete_btn ();
             update_open_btn ();
@@ -79,11 +76,6 @@ private class Boxes.Selectionbar: Gtk.Revealer {
         App.app.remove_selected_items ();
     }
 
-    [GtkCallback]
-    private void on_properties_btn_clicked () {
-        window.show_properties ();
-    }
-
     private void update_favorite_btn () {
         var active = false;
         var sensitive = App.app.selected_items.length () > 0;
@@ -108,12 +100,6 @@ private class Boxes.Selectionbar: Gtk.Revealer {
         ignore_favorite_btn_clicks = false;
     }
 
-    private void update_properties_btn () {
-        var sensitive = App.app.selected_items.length () == 1;
-
-        properties_btn.sensitive = sensitive;
-    }
-
     private void update_pause_btn () {
         var sensitive = false;
         foreach (var item in App.app.selected_items) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]