gnome-power-manager r3152 - in trunk: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3152 - in trunk: . src
- Date: Tue, 13 Jan 2009 10:42:17 +0000 (UTC)
Author: rhughes
Date: Tue Jan 13 10:42:17 2009
New Revision: 3152
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3152&view=rev
Log:
2009-01-13 Richard Hughes <richard hughsie com>
* src/gpm-prefs-core.c: (gpm_prefs_init):
* src/gpm-statistics.c: (main):
Fix some small code issues found by Paolo Borelli.
Fixes #567298
Modified:
trunk/ChangeLog
trunk/src/gpm-prefs-core.c
trunk/src/gpm-statistics.c
Modified: trunk/src/gpm-prefs-core.c
==============================================================================
--- trunk/src/gpm-prefs-core.c (original)
+++ trunk/src/gpm-prefs-core.c Tue Jan 13 10:42:17 2009
@@ -1111,8 +1111,7 @@
/* Hide window first so that the dialogue resizes itself without redrawing */
gtk_widget_hide (main_window);
-
- gtk_window_set_icon_name (GTK_WINDOW(main_window), GPM_STOCK_APP_ICON);
+ gtk_window_set_default_icon_name (GPM_STOCK_APP_ICON);
/* Get the main window quit */
g_signal_connect (main_window, "delete_event",
Modified: trunk/src/gpm-statistics.c
==============================================================================
--- trunk/src/gpm-statistics.c (original)
+++ trunk/src/gpm-statistics.c Tue Jan 13 10:42:17 2009
@@ -990,7 +990,7 @@
g_type_init ();
context = g_option_context_new (NULL);
- g_option_context_set_summary (context, _("Software Log Viewer"));
+ g_option_context_set_summary (context, _("Power Statistics"));
g_option_context_add_main_entries (context, options, NULL);
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free (context);
@@ -1025,9 +1025,8 @@
glade_xml = glade_xml_new (GPM_DATA "/gpm-statistics.glade", NULL, NULL);
widget = glade_xml_get_widget (glade_xml, "dialog_stats");
- gtk_window_set_icon_name (GTK_WINDOW (widget), "gtk-help");
- gtk_widget_set_size_request (widget, 800, 500);
- gtk_window_set_icon_name (GTK_WINDOW (widget), GPM_STOCK_APP_ICON);
+ gtk_window_set_default_size (GTK_WINDOW(widget), 800, 500);
+ gtk_window_set_default_icon_name (GPM_STOCK_APP_ICON);
/* Get the main window quit */
g_signal_connect_swapped (widget, "delete_event", G_CALLBACK (gtk_main_quit), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]