[gnome-boxes] selectionbar: Remove properties button



commit eb92a0c5b64d2fb6a93d7531756c6a47c44a9772
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Mar 4 17:48:18 2015 +0100

    selectionbar: Remove properties button
    
    This removes the properties button from the selectionbar.
    
    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]