From 275a84e3ec28fc31cdcb97ce33ce6d302b5c5505 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 31 Mar 2013 20:28:19 -0400 Subject: [PATCH] info: Switch around GNOME and distro information This makes the distribution logo prominent, and puts GNOME version information in the small print. https://bugzilla.gnome.org/show_bug.cgi?id=695691 --- panels/info/cc-info-overview-panel.c | 7 ++----- panels/info/cc-info-overview-panel.ui | 14 ++++++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/panels/info/cc-info-overview-panel.c b/panels/info/cc-info-overview-panel.c index e2276a295..1055b82e5 100644 --- a/panels/info/cc-info-overview-panel.c +++ b/panels/info/cc-info-overview-panel.c @@ -435,7 +435,7 @@ static char * get_os_name (void) { GHashTable *os_info; - gchar *name, *version_id, *pretty_name, *build_id; + gchar *name, *version_id, *build_id; gchar *result = NULL; g_autofree gchar *name_version = NULL; @@ -446,12 +446,9 @@ get_os_name (void) name = g_hash_table_lookup (os_info, "NAME"); version_id = g_hash_table_lookup (os_info, "VERSION_ID"); - pretty_name = g_hash_table_lookup (os_info, "PRETTY_NAME"); build_id = g_hash_table_lookup (os_info, "BUILD_ID"); - if (pretty_name) - name_version = g_strdup (pretty_name); - else if (name && version_id) + if (name && version_id) name_version = g_strdup_printf ("%s %s", name, version_id); else name_version = g_strdup (_("Unknown")); diff --git a/panels/info/cc-info-overview-panel.ui b/panels/info/cc-info-overview-panel.ui index 219a83c4c..aa87fbec2 100644 --- a/panels/info/cc-info-overview-panel.ui +++ b/panels/info/cc-info-overview-panel.ui @@ -12,13 +12,14 @@ True False - 18 + 6 vertical True False - /org/gnome/control-center/info/GnomeLogoVerticalMedium.svg + 128 + fedora-logo-icon False @@ -27,11 +28,12 @@ - + True False Version 3.0 True + 24 @@ -118,8 +120,8 @@ True False 1 - OS name - os_name_label + GNOME + version_label @@ -228,7 +230,7 @@ - + True False 0 -- 2.19.1