[gnome-control-center/wip/kalev/no-micro-version] info-overview: Don't show GNOME micro version
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/kalev/no-micro-version] info-overview: Don't show GNOME micro version
- Date: Mon, 22 Mar 2021 23:13:49 +0000 (UTC)
commit 96f3b2fcca69fcbb2e5ce0a9a21b16a142e23f7d
Author: Kalev Lember <klember redhat com>
Date: Tue Mar 23 00:11:30 2021 +0100
info-overview: Don't show GNOME micro version
With the new versioning scheme, GNOME just has major.minor versions
(e.g. 40.rc, 40.0) and micro versions are no longer used. Even if
gnome-desktop happens to get a micro version to fix a bug, it's not
something we should show in the UI.
panels/info-overview/cc-info-overview-panel.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index bd0e07762..a2cb70755 100644
--- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c
@@ -82,7 +82,6 @@ typedef struct
{
char *major;
char *minor;
- char *micro;
char *distributor;
char *date;
char **current;
@@ -93,7 +92,6 @@ version_data_free (VersionData *data)
{
g_free (data->major);
g_free (data->minor);
- g_free (data->micro);
g_free (data->distributor);
g_free (data->date);
g_free (data);
@@ -116,8 +114,6 @@ version_start_element_handler (GMarkupParseContext *ctx,
data->current = &data->major;
else if (g_str_equal (element_name, "minor"))
data->current = &data->minor;
- else if (g_str_equal (element_name, "micro"))
- data->current = &data->micro;
else if (g_str_equal (element_name, "distributor"))
data->current = &data->distributor;
else if (g_str_equal (element_name, "date"))
@@ -188,7 +184,7 @@ load_gnome_version (char **version,
else
{
if (version != NULL)
- *version = g_strdup_printf ("%s.%s.%s", data->major, data->minor, data->micro);
+ *version = g_strdup_printf ("%s.%s", data->major, data->minor);
if (distributor != NULL)
*distributor = g_strdup (data->distributor);
if (date != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]