gnome-power-manager r3153 - in trunk: . data src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3153 - in trunk: . data src
- Date: Tue, 13 Jan 2009 14:03:44 +0000 (UTC)
Author: rhughes
Date: Tue Jan 13 14:03:44 2009
New Revision: 3153
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3153&view=rev
Log:
2009-01-13 Richard Hughes <richard hughsie com>
* data/gpm-statistics.glade:
* src/gpm-statistics.c: (gpm_stats_notebook_changed_cb):
Change the window title when in different modes.
Fixes #567295
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 Tue Jan 13 14:03:44 2009
@@ -4,7 +4,7 @@
<glade-interface>
<widget class="GtkDialog" id="dialog_stats">
<property name="border_width">6</property>
- <property name="title" translatable="yes">Power Device Viewer</property>
+ <property name="title" translatable="yes">Power Statistics</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="has_separator">False</property>
Modified: trunk/src/gpm-statistics.c
==============================================================================
--- trunk/src/gpm-statistics.c (original)
+++ trunk/src/gpm-statistics.c Tue Jan 13 14:03:44 2009
@@ -592,6 +592,16 @@
gpm_stats_notebook_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, gint page_num, gpointer user_data)
{
DkpDevice *device;
+ GtkWidget *widget;
+
+ /* set the window title depending on the mode */
+ widget = glade_xml_get_widget (glade_xml, "dialog_stats");
+ if (page_num == 0)
+ gtk_window_set_title (GTK_WINDOW(widget), _("Power Statistics - Device Information"));
+ else if (page_num == 1)
+ gtk_window_set_title (GTK_WINDOW(widget), _("Power Statistics - Device History"));
+ else if (page_num == 2)
+ gtk_window_set_title (GTK_WINDOW(widget), _("Power Statistics - Device Profile"));
/* save page in gconf */
gconf_client_set_int (gconf_client, GPM_CONF_INFO_PAGE_NUMBER, page_num, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]