[gnome-software] trivial: Don't show (null) in the window title for firmware files
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't show (null) in the window title for firmware files
- Date: Tue, 28 Jul 2015 12:16:58 +0000 (UTC)
commit 8d14c3bb14faed1c678676ccda6149bae80730d9
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 28 13:15:11 2015 +0100
trivial: Don't show (null) in the window title for firmware files
src/gs-update-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 21b85a8..547aee1 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -102,12 +102,15 @@ set_updates_description_ui (GsUpdateDialog *dialog, GsApp *app)
kind = gs_app_get_kind (app);
if (kind == GS_APP_KIND_OS_UPDATE) {
gtk_window_set_title (GTK_WINDOW (dialog), gs_app_get_name (app));
- } else {
+ } else if (gs_app_get_source_default (app) != NULL) {
_cleanup_free_ gchar *tmp = NULL;
tmp = g_strdup_printf ("%s %s",
gs_app_get_source_default (app),
gs_app_get_update_version (app));
gtk_window_set_title (GTK_WINDOW (dialog), tmp);
+ } else {
+ gtk_window_set_title (GTK_WINDOW (dialog),
+ gs_app_get_update_version (app));
}
/* get the update description */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]