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