gnome-power-manager r3262 - in trunk: . data src



Author: rhughes
Date: Fri Feb 13 11:55:50 2009
New Revision: 3262
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3262&view=rev

Log:
2009-02-13  Richard Hughes  <richard hughsie com>

* data/gpm-statistics.glade:
* src/gpm-statistics.c: (main):
Remove the refresh button from the stats interface, it's designed as
a read only viewer.


Modified:
   trunk/ChangeLog
   trunk/data/gpm-statistics.glade
   trunk/src/gpm-statistics.c

Modified: trunk/data/gpm-statistics.glade
==============================================================================
--- trunk/data/gpm-statistics.glade	(original)
+++ trunk/data/gpm-statistics.glade	Fri Feb 13 11:55:50 2009
@@ -451,20 +451,6 @@
               </packing>
             </child>
             <child>
-              <widget class="GtkButton" id="button_refresh">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
-                <property name="label">gtk-refresh</property>
-                <property name="use_stock">True</property>
-                <property name="response_id">0</property>
-              </widget>
-              <packing>
-                <property name="expand">False</property>
-                <property name="position">1</property>
-              </packing>
-            </child>
-            <child>
               <widget class="GtkButton" id="button_close">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
@@ -474,7 +460,7 @@
                 <property name="response_id">0</property>
               </widget>
               <packing>
-                <property name="position">2</property>
+                <property name="position">1</property>
               </packing>
             </child>
           </widget>

Modified: trunk/src/gpm-statistics.c
==============================================================================
--- trunk/src/gpm-statistics.c	(original)
+++ trunk/src/gpm-statistics.c	Fri Feb 13 11:55:50 2009
@@ -959,20 +959,6 @@
 }
 
 /**
- * gpm_stats_button_refresh_cb:
- **/
-static void
-gpm_stats_button_refresh_cb (GtkWidget *widget, gpointer data)
-{
-	DkpDevice *device;
-	device = dkp_device_new ();
-	dkp_device_set_object_path (device, current_device);
-	dkp_device_refresh (device);
-	gpm_stats_update_info_data (device);
-	g_object_unref (device);
-}
-
-/**
  * gpm_stats_button_update_ui:
  **/
 static void
@@ -1406,10 +1392,6 @@
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpm_stats_button_help_cb), NULL);
 
-	widget = glade_xml_get_widget (glade_xml, "button_refresh");
-	g_signal_connect (widget, "clicked",
-			  G_CALLBACK (gpm_stats_button_refresh_cb), NULL);
-
 	widget = glade_xml_get_widget (glade_xml, "checkbutton_smooth_history");
 	checked = gconf_client_get_bool (gconf_client, GPM_CONF_INFO_HISTORY_GRAPH_SMOOTH, NULL);
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), checked);



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