[gnome-disk-utility/udisks2-port] Nuke the "Write Cache" GtkSwitch



commit 6a9ece09a0a4c65a316361be5579179b364abe38
Author: David Zeuthen <davidz redhat com>
Date:   Thu Jun 16 13:46:04 2011 -0400

    Nuke the "Write Cache" GtkSwitch
    
    We can always add this back when (and if) udisks starts supporting
    this.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 data/ui/palimpsest.ui      |   45 +-------------------------------------------
 src/palimpsest/gduwindow.c |   14 -------------
 2 files changed, 1 insertions(+), 58 deletions(-)
---
diff --git a/data/ui/palimpsest.ui b/data/ui/palimpsest.ui
index fe29130..57a7f00 100644
--- a/data/ui/palimpsest.ui
+++ b/data/ui/palimpsest.ui
@@ -428,7 +428,7 @@
                   <object class="GtkTable" id="devtab-drive-table">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="n_rows">8</property>
+                    <property name="n_rows">7</property>
                     <property name="n_columns">2</property>
                     <property name="column_spacing">10</property>
                     <child>
@@ -634,49 +634,6 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkLabel" id="devtab-write-cache-label">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="xalign">1</property>
-                        <property name="label" translatable="yes">_Write Cache</property>
-                        <property name="use_underline">True</property>
-                        <attributes>
-                          <attribute name="foreground" value="#555555555555"/>
-                        </attributes>
-                      </object>
-                      <packing>
-                        <property name="top_attach">7</property>
-                        <property name="bottom_attach">8</property>
-                        <property name="x_options">GTK_FILL</property>
-                        <property name="y_options"></property>
-                        <property name="y_padding">4</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkHBox" id="devtab-write-cache-hbox">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <child>
-                          <placeholder/>
-                        </child>
-                        <child>
-                          <placeholder/>
-                        </child>
-                        <child>
-                          <placeholder/>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="left_attach">1</property>
-                        <property name="right_attach">2</property>
-                        <property name="top_attach">7</property>
-                        <property name="bottom_attach">8</property>
-                        <property name="x_options">GTK_FILL</property>
-                        <property name="y_options"></property>
-                        <property name="y_padding">4</property>
-                      </packing>
-                    </child>
-                    <child>
                       <object class="GtkImage" id="devtab-drive-image">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 3ed3cd1..dc443a1 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -54,7 +54,6 @@ struct _GduWindow
   UDisksObject *current_object;
 
   GtkWidget *volume_grid;
-  GtkWidget *write_cache_switch;
 
   GHashTable *label_connections;
 };
@@ -453,14 +452,6 @@ gdu_window_constructed (GObject *object)
   gtk_widget_set_name (gdu_window_get_widget (window, "devtab-grid-toolbar"), "devtab-grid-toolbar");
   gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
 
-  /* devtab's Write Cache switch */
-  window->write_cache_switch = gtk_switch_new ();
-  gtk_box_pack_start (GTK_BOX (gdu_window_get_widget (window, "devtab-write-cache-hbox")),
-                      window->write_cache_switch,
-                      FALSE, TRUE, 0);
-  gtk_label_set_mnemonic_widget (GTK_LABEL (gdu_window_get_widget (window, "devtab-write-cache-label")),
-                                 window->write_cache_switch);
-
   /* actions */
   g_signal_connect (gtk_builder_get_object (window->builder, "devtab-action-generic"),
                     "activate",
@@ -1041,11 +1032,6 @@ update_device_page_for_drive (GduWindow     *window,
               "devtab-wwn-label",
               "devtab-wwn-value-label",
               udisks_drive_get_wwn (drive), SET_MARKUP_FLAGS_NONE);
-  /* TODO: get this from udisks */
-  gtk_switch_set_active (GTK_SWITCH (window->write_cache_switch), TRUE);
-  gtk_widget_show (gdu_window_get_widget (window, "devtab-write-cache-label"));
-  gtk_widget_set_no_show_all (gdu_window_get_widget (window, "devtab-write-cache-hbox"), FALSE);
-  gtk_widget_show_all (gdu_window_get_widget (window, "devtab-write-cache-hbox"));
 
   size = udisks_drive_get_size (drive);
   if (size > 0)



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