|
|
45708b |
From 73be5fcb0764cb8e7bdcbcf3ee06b833078d576a Mon Sep 17 00:00:00 2001
|
|
|
45708b |
From: Matthias Clasen <mclasen@redhat.com>
|
|
|
45708b |
Date: Sun, 31 Mar 2013 20:28:19 -0400
|
|
|
45708b |
Subject: [PATCH] info: Switch around GNOME and distro information
|
|
|
45708b |
|
|
|
45708b |
This makes the distribution logo prominent, and puts GNOME version
|
|
|
45708b |
information in the small print.
|
|
|
45708b |
|
|
|
45708b |
https://bugzilla.gnome.org/show_bug.cgi?id=695691
|
|
|
45708b |
---
|
|
|
45708b |
panels/info/cc-info-overview-panel.c | 7 ++-----
|
|
|
45708b |
panels/info/info-overview.ui | 14 ++++++++------
|
|
|
45708b |
2 files changed, 10 insertions(+), 11 deletions(-)
|
|
|
45708b |
|
|
|
45708b |
diff --git a/panels/info/cc-info-overview-panel.c b/panels/info/cc-info-overview-panel.c
|
|
|
45708b |
index 7a5879c6b..ce15e92d0 100644
|
|
|
45708b |
--- a/panels/info/cc-info-overview-panel.c
|
|
|
45708b |
+++ b/panels/info/cc-info-overview-panel.c
|
|
|
45708b |
@@ -446,7 +446,7 @@ static char *
|
|
|
45708b |
get_os_name (void)
|
|
|
45708b |
{
|
|
|
45708b |
GHashTable *os_info;
|
|
|
45708b |
- gchar *name, *version_id, *pretty_name, *build_id;
|
|
|
45708b |
+ gchar *name, *version_id, *build_id;
|
|
|
45708b |
gchar *result = NULL;
|
|
|
45708b |
g_autofree gchar *name_version = NULL;
|
|
|
45708b |
|
|
|
45708b |
@@ -457,12 +457,9 @@ get_os_name (void)
|
|
|
45708b |
|
|
|
45708b |
name = g_hash_table_lookup (os_info, "NAME");
|
|
|
45708b |
version_id = g_hash_table_lookup (os_info, "VERSION_ID");
|
|
|
45708b |
- pretty_name = g_hash_table_lookup (os_info, "PRETTY_NAME");
|
|
|
45708b |
build_id = g_hash_table_lookup (os_info, "BUILD_ID");
|
|
|
45708b |
|
|
|
45708b |
- if (pretty_name)
|
|
|
45708b |
- name_version = g_strdup (pretty_name);
|
|
|
45708b |
- else if (name && version_id)
|
|
|
45708b |
+ if (name && version_id)
|
|
|
45708b |
name_version = g_strdup_printf ("%s %s", name, version_id);
|
|
|
45708b |
else
|
|
|
45708b |
name_version = g_strdup (_("Unknown"));
|
|
|
45708b |
diff --git a/panels/info/info-overview.ui b/panels/info/info-overview.ui
|
|
|
45708b |
index 219a83c4c..aa87fbec2 100644
|
|
|
45708b |
--- a/panels/info/info-overview.ui
|
|
|
45708b |
+++ b/panels/info/info-overview.ui
|
|
|
45708b |
@@ -12,13 +12,14 @@
|
|
|
45708b |
<object class="GtkBox">
|
|
|
45708b |
<property name="visible">True</property>
|
|
|
45708b |
<property name="can_focus">False</property>
|
|
|
45708b |
- <property name="spacing">18</property>
|
|
|
45708b |
+ <property name="spacing">6</property>
|
|
|
45708b |
<property name="orientation">vertical</property>
|
|
|
45708b |
<child>
|
|
|
45708b |
<object class="GtkImage" id="system_image">
|
|
|
45708b |
<property name="visible">True</property>
|
|
|
45708b |
<property name="can_focus">False</property>
|
|
|
45708b |
- <property name="resource">/org/gnome/control-center/info/GnomeLogoVerticalMedium.svg</property>
|
|
|
45708b |
+ <property name="pixel_size">128</property>
|
|
|
45708b |
+ <property name="icon_name">fedora-logo-icon</property>
|
|
|
45708b |
</object>
|
|
|
45708b |
<packing>
|
|
|
45708b |
<property name="expand">False</property>
|
|
|
45708b |
@@ -27,11 +28,12 @@
|
|
|
45708b |
</packing>
|
|
|
45708b |
</child>
|
|
|
45708b |
<child>
|
|
|
45708b |
- <object class="GtkLabel" id="version_label">
|
|
|
45708b |
+ <object class="GtkLabel" id="os_name_label">
|
|
|
45708b |
<property name="visible">True</property>
|
|
|
45708b |
<property name="can_focus">False</property>
|
|
|
45708b |
<property name="label">Version 3.0</property>
|
|
|
45708b |
<property name="selectable">True</property>
|
|
|
45708b |
+ <property name="margin-bottom">24</property>
|
|
|
45708b |
<attributes>
|
|
|
45708b |
<attribute name="scale" value="1.25"/>
|
|
|
45708b |
</attributes>
|
|
|
45708b |
@@ -118,8 +120,8 @@
|
|
|
45708b |
<property name="visible">True</property>
|
|
|
45708b |
<property name="can_focus">False</property>
|
|
|
45708b |
<property name="xalign">1</property>
|
|
|
45708b |
- <property name="label" translatable="yes" comments="To translators: this field contains the distro name and version">OS name</property>
|
|
|
45708b |
- <property name="mnemonic_widget">os_name_label</property>
|
|
|
45708b |
+ <property name="label">GNOME</property>
|
|
|
45708b |
+ <property name="mnemonic_widget">version_label</property>
|
|
|
45708b |
<style>
|
|
|
45708b |
<class name="dim-label"/>
|
|
|
45708b |
</style>
|
|
|
45708b |
@@ -228,7 +230,7 @@
|
|
|
45708b |
</packing>
|
|
|
45708b |
</child>
|
|
|
45708b |
<child>
|
|
|
45708b |
- <object class="GtkLabel" id="os_name_label">
|
|
|
45708b |
+ <object class="GtkLabel" id="version_label">
|
|
|
45708b |
<property name="visible">True</property>
|
|
|
45708b |
<property name="can_focus">False</property>
|
|
|
45708b |
<property name="xalign">0</property>
|
|
|
45708b |
--
|
|
|
45708b |
2.13.0
|
|
|
45708b |
|