[gnome-packagekit/gnome-2-28] Never show the role text in the GpkWatch tooltip
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit/gnome-2-28] Never show the role text in the GpkWatch tooltip
- Date: Mon, 28 Sep 2009 09:07:05 +0000 (UTC)
commit 3fcdcd5c85486c242584d420f886e279926a51b0
Author: Richard Hughes <richard hughsie com>
Date: Sun Sep 27 11:28:53 2009 +0100
Never show the role text in the GpkWatch tooltip
src/gpk-watch.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/gpk-watch.c b/src/gpk-watch.c
index 5326931..33ca950 100644
--- a/src/gpk-watch.c
+++ b/src/gpk-watch.c
@@ -982,29 +982,22 @@ static gchar *
gpk_watch_get_role_text (PkClient *client)
{
const gchar *role_text;
- gchar *text;
gchar *message;
PkRoleEnum role;
GError *error = NULL;
gboolean ret;
/* get role and text */
- ret = pk_client_get_role (client, &role, &text, &error);
+ ret = pk_client_get_role (client, &role, NULL, &error);
if (!ret) {
egg_warning ("failed to get role: %s", error->message);
g_error_free (error);
return NULL;
}
- /* backup */
+ /* present tense localisation */
role_text = gpk_role_enum_to_localised_present (role);
-
- if (!egg_strzero (text) && role != PK_ROLE_ENUM_UPDATE_PACKAGES)
- message = g_strdup_printf ("%s: %s", role_text, text);
- else
- message = g_strdup_printf ("%s", role_text);
- g_free (text);
-
+ message = g_strdup_printf ("%s", role_text);
return message;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]