gnome-packagekit r473 - in trunk: data po src



Author: rhughes
Date: Thu Jan 15 17:03:00 2009
New Revision: 473
URL: http://svn.gnome.org/viewvc/gnome-packagekit?rev=473&view=rev

Log:
refresh po files

Modified:
   trunk/data/gnome-packagekit.schemas.in
   trunk/po/ar.po
   trunk/po/as.po
   trunk/po/bn_IN.po
   trunk/po/ca.po
   trunk/po/cs.po
   trunk/po/cy.po
   trunk/po/da.po
   trunk/po/de.po
   trunk/po/el.po
   trunk/po/en_GB.po
   trunk/po/es.po
   trunk/po/fi.po
   trunk/po/fr.po
   trunk/po/gl.po
   trunk/po/gu.po
   trunk/po/he.po
   trunk/po/hi.po
   trunk/po/hu.po
   trunk/po/it.po
   trunk/po/ja.po
   trunk/po/kn.po
   trunk/po/ml.po
   trunk/po/mr.po
   trunk/po/nb.po
   trunk/po/nl.po
   trunk/po/oc.po
   trunk/po/or.po
   trunk/po/pa.po
   trunk/po/pl.po
   trunk/po/pt_BR.po
   trunk/po/ru.po
   trunk/po/sv.po
   trunk/po/ta.po
   trunk/po/te.po
   trunk/po/tr.po
   trunk/po/zh_HK.po
   trunk/po/zh_TW.po
   trunk/src/Makefile.am
   trunk/src/egg-dbus-monitor.c
   trunk/src/gpk-cell-renderer-uri.c
   trunk/src/gpk-client-chooser.c
   trunk/src/gpk-client-run.c
   trunk/src/gpk-client.c
   trunk/src/gpk-hardware.c
   trunk/src/gpk-self-test.c
   trunk/src/gpk-watch.c

Modified: trunk/data/gnome-packagekit.schemas.in
==============================================================================
--- trunk/data/gnome-packagekit.schemas.in	(original)
+++ trunk/data/gnome-packagekit.schemas.in	Thu Jan 15 17:03:00 2009
@@ -78,7 +78,7 @@
       <applyto>/apps/gnome-packagekit/notify_update_complete</applyto>
       <owner>gnome-packagekit</owner>
       <type>bool</type>
-      <default>true</default>
+      <default>false</default>
       <locale name="C">
         <short>Notify the user for completed updates</short>
         <long>Notify the user for completed updates</long>

Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am	(original)
+++ trunk/src/Makefile.am	Thu Jan 15 17:03:00 2009
@@ -51,8 +51,6 @@
 	egg-debug.h					\
 	egg-string.c					\
 	egg-string.h					\
-	egg-string-list.c				\
-	egg-string-list.h				\
 	egg-unique.c					\
 	egg-unique.h					\
 	egg-markdown.c					\

Modified: trunk/src/egg-dbus-monitor.c
==============================================================================
--- trunk/src/egg-dbus-monitor.c	(original)
+++ trunk/src/egg-dbus-monitor.c	Thu Jan 15 17:03:00 2009
@@ -198,7 +198,7 @@
 const gchar *
 egg_dbus_monitor_get_service (EggDbusMonitor *monitor)
 {
-	g_return_val_if_fail (EGG_IS_DBUS_MONITOR (monitor), FALSE);
+	g_return_val_if_fail (EGG_IS_DBUS_MONITOR (monitor), NULL);
 
 	return monitor->priv->service;
 }

Modified: trunk/src/gpk-cell-renderer-uri.c
==============================================================================
--- trunk/src/gpk-cell-renderer-uri.c	(original)
+++ trunk/src/gpk-cell-renderer-uri.c	Thu Jan 15 17:03:00 2009
@@ -31,7 +31,7 @@
 enum {
 	PROP_0,
 	PROP_URI,
-	PROP_CLICKED,
+	PROP_CLICKED
 };
 
 enum {

Modified: trunk/src/gpk-client-chooser.c
==============================================================================
--- trunk/src/gpk-client-chooser.c	(original)
+++ trunk/src/gpk-client-chooser.c	Thu Jan 15 17:03:00 2009
@@ -183,8 +183,8 @@
 	guint len;
 	guint i;
 
-	g_return_val_if_fail (list != NULL, FALSE);
-	g_return_val_if_fail (title != NULL, FALSE);
+	g_return_val_if_fail (list != NULL, NULL);
+	g_return_val_if_fail (title != NULL, NULL);
 
 	/* we have to do this before we connect up the glade file */
 	gpk_update_viewer_setup_policykit ();

Modified: trunk/src/gpk-client-run.c
==============================================================================
--- trunk/src/gpk-client-run.c	(original)
+++ trunk/src/gpk-client-run.c	Thu Jan 15 17:03:00 2009
@@ -344,7 +344,7 @@
 	guint len;
 	GpkClientRunPriv priv;
 
-	g_return_val_if_fail (package_ids != NULL, FALSE);
+	g_return_val_if_fail (package_ids != NULL, NULL);
 
 	/* use custom widgets */
 	glade_set_custom_handler (gpk_update_viewer_create_custom_widget, NULL);

Modified: trunk/src/gpk-client.c
==============================================================================
--- trunk/src/gpk-client.c	(original)
+++ trunk/src/gpk-client.c	Thu Jan 15 17:03:00 2009
@@ -3046,7 +3046,7 @@
 	GError *error_local = NULL;
 	PkPackageList *list = NULL;
 
-	g_return_val_if_fail (GPK_IS_CLIENT (gclient), FALSE);
+	g_return_val_if_fail (GPK_IS_CLIENT (gclient), NULL);
 
 	/* reset */
 	ret = pk_client_reset (gclient->priv->client_action, &error_local);
@@ -3097,7 +3097,7 @@
 	gboolean ret;
 	GError *error_local = NULL;
 
-	g_return_val_if_fail (GPK_IS_CLIENT (gclient), FALSE);
+	g_return_val_if_fail (GPK_IS_CLIENT (gclient), NULL);
 
 	/* are we not able to do this? */
 	if (!pk_bitfield_contain (gclient->priv->roles, PK_ROLE_ENUM_GET_DISTRO_UPGRADES)) {
@@ -3157,7 +3157,7 @@
 	GError *error_local = NULL;
 	gchar **package_ids;
 
-	g_return_val_if_fail (GPK_IS_CLIENT (gclient), FALSE);
+	g_return_val_if_fail (GPK_IS_CLIENT (gclient), NULL);
 
 	/* reset */
 	ret = pk_client_reset (gclient->priv->client_action, &error_local);

Modified: trunk/src/gpk-hardware.c
==============================================================================
--- trunk/src/gpk-hardware.c	(original)
+++ trunk/src/gpk-hardware.c	Thu Jan 15 17:03:00 2009
@@ -43,7 +43,6 @@
 
 #include "egg-debug.h"
 #include "egg-string.h"
-#include "egg-string-list.h"
 
 #include "gpk-client.h"
 #include "gpk-common.h"

Modified: trunk/src/gpk-self-test.c
==============================================================================
--- trunk/src/gpk-self-test.c	(original)
+++ trunk/src/gpk-self-test.c	Thu Jan 15 17:03:00 2009
@@ -28,7 +28,6 @@
 
 void egg_markdown_test (EggTest *test);
 void egg_string_test (EggTest *test);
-void egg_string_list_test (EggTest *test);
 void gpk_dbus_test (EggTest *test);
 void gpk_language_test (EggTest *test);
 void gpk_client_dialog_test (EggTest *test);
@@ -50,7 +49,6 @@
 	/* tests go here */
 	egg_markdown_test (test);
 	egg_string_test (test);
-	egg_string_list_test (test);
 	gpk_enum_test (test);
 	gpk_common_test (test);
 //	gpk_dbus_test (test);

Modified: trunk/src/gpk-watch.c
==============================================================================
--- trunk/src/gpk-watch.c	(original)
+++ trunk/src/gpk-watch.c	Thu Jan 15 17:03:00 2009
@@ -291,6 +291,7 @@
 static void
 gpk_watch_finished_cb (PkTaskList *tlist, PkClient *client, PkExitEnum exit_enum, guint runtime, GpkWatch *watch)
 {
+	guint i;
 	gboolean ret;
 	gboolean value;
 	PkRoleEnum role;
@@ -298,8 +299,10 @@
 	GError *error = NULL;
 	gchar *text = NULL;
 	gchar *message = NULL;
-	const gchar *restart_message;
+	GString *string;
+	PkPackageId *id;
 	const gchar *icon_name;
+	const GPtrArray	*array;
 	NotifyNotification *notification;
 
 	g_return_if_fail (GPK_IS_WATCH (watch));
@@ -319,10 +322,27 @@
 		/* if more important than what we are already showing, then update the icon */
 		restart = pk_client_get_require_restart (client);
 		if (restart > watch->priv->restart) {
-			restart_message = gpk_restart_enum_to_localised_text (restart);
+
+			/* get title */
+			string = g_string_new (gpk_restart_enum_to_localised_text (restart));
+			g_string_append_c (string, '\n');
+
+			/* list packages requiring this */
+			array = pk_client_get_require_restart_list (client);
+			for (i=0; i<array->len; i++) {
+				id = g_ptr_array_index (array, i);
+				/* TRANSLATORS: this is a package that required an update */
+				g_string_append_printf (string, "%s %s\n", _("Package:"), id->name);
+			}
+
+			/* remove final \n */
+			if (string->len > 0)
+				g_string_set_size (string, string->len - 1);
+
 			icon_name = gpk_restart_enum_to_icon_name (restart);
-			gtk_status_icon_set_tooltip (GTK_STATUS_ICON (watch->priv->sicon_action), restart_message);
+			gtk_status_icon_set_tooltip (GTK_STATUS_ICON (watch->priv->sicon_action), string->str);
 			gpk_smart_icon_set_icon_name (watch->priv->sicon_action, icon_name);
+			g_string_free (string, TRUE);
 
 			/* save new restart */
 			watch->priv->restart = restart;



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