gnome-packagekit r293 - in trunk: data src



Author: rhughes
Date: Thu Sep 18 14:05:26 2008
New Revision: 293
URL: http://svn.gnome.org/viewvc/gnome-packagekit?rev=293&view=rev

Log:
from git

Modified:
   trunk/data/gpk-client.glade
   trunk/src/gpk-application.c

Modified: trunk/data/gpk-client.glade
==============================================================================
--- trunk/data/gpk-client.glade	(original)
+++ trunk/data/gpk-client.glade	Thu Sep 18 14:05:26 2008
@@ -173,7 +173,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
-                <property name="label" translatable="yes">gtk-cancel</property>
+                <property name="label" translatable="no">gtk-cancel</property>
                 <property name="use_stock">True</property>
                 <property name="response_id">0</property>
               </widget>
@@ -186,7 +186,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="receives_default">True</property>
-                <property name="label" translatable="yes">gtk-close</property>
+                <property name="label" translatable="no">gtk-close</property>
                 <property name="use_stock">True</property>
                 <property name="response_id">0</property>
               </widget>

Modified: trunk/src/gpk-application.c
==============================================================================
--- trunk/src/gpk-application.c	(original)
+++ trunk/src/gpk-application.c	Thu Sep 18 14:05:26 2008
@@ -940,6 +940,10 @@
 
 	gtk_list_store_clear (application->priv->details_store);
 
+	/* if a collection, mark as such */
+	if (egg_strequal (details->id->data, "meta"))
+		gpk_application_add_detail_item (application, _("Type"), _("Collection"), NULL);
+
 	/* homepage */
 	widget = glade_xml_get_widget (application->priv->glade_xml, "menuitem_homepage");
 	if (egg_strzero (details->url) == FALSE) {
@@ -983,17 +987,18 @@
 	if (details->size > 0) {
 		/* set the size */
 		value = gpk_size_to_si_size_text (details->size);
-		if (installed) {
+		if (egg_strequal (details->id->data, "meta"))
+			gpk_application_add_detail_item (application, _("Size"), value, NULL);
+		else if (installed)
 			gpk_application_add_detail_item (application, _("Installed size"), value, NULL);
-		} else {
+		else
 			gpk_application_add_detail_item (application, _("Download size"), value, NULL);
-		}
 		g_free (value);
 	}
 
 	/* set the repo text, or hide if installed */
-	if (!installed) {
-		/* see if we can get the full name of the repo from the repo_id */
+	if (!installed && !egg_strequal (details->id->data, "meta")) {
+		/* get the full name of the repo from the repo_id */
 		repo_name = gpk_application_get_full_repo_name (application, details->id->data);
 		gpk_application_add_detail_item (application, _("Source"), repo_name, NULL);
 	}



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