summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamesbond <jamesbond@unknown.email.address>2015-10-25 15:40:36 -0200
committerLeandro Pereira <leandro@hardinfo.org>2015-10-25 15:49:33 -0200
commitca6ee5bae777e59920dd7b018008e2fa5f8a5392 (patch)
tree03e1923f26ade4d6409b3c6d99d5ce1a74390691
parent4f89b7e8cc4419d4916199ddb6e1b8c5c7910d05 (diff)
stability fixes & add fatdog64 recognition
-rw-r--r--includes/computer.h2
-rw-r--r--modules/computer/os.c8
-rw-r--r--shell/shell.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/includes/computer.h b/includes/computer.h
index 451cd0ce..94e8a09d 100644
--- a/includes/computer.h
+++ b/includes/computer.h
@@ -44,6 +44,8 @@ static struct {
{ DB_PREFIX "sun-release", "sun" },
{ DB_PREFIX "zenwalk-version", "zen" },
{ DB_PREFIX "DISTRO_SPECS", "ppy" },
+ { DB_PREFIX "puppyversion", "ppy" },
+ { DB_PREFIX "fatdog-version", "fatdog" },
{ DB_PREFIX "distro-release", "fl" },
{ DB_PREFIX "vine-release", "vine" },
{ DB_PREFIX "PartedMagic-version", "pmag" },
diff --git a/modules/computer/os.c b/modules/computer/os.c
index b9d8d6f9..39d0e020 100644
--- a/modules/computer/os.c
+++ b/modules/computer/os.c
@@ -202,6 +202,14 @@ computer_get_os(void)
g_free(os->distro);
os->distro = tmp;
}
+
+ if (g_str_equal(distro_db[i].codename, "fatdog")) {
+ gchar *tmp;
+ tmp = g_strdup_printf("Fatdog64 [%.10s]", os->distro);
+ g_free(os->distro);
+ os->distro = tmp;
+ }
+
os->distrocode = g_strdup(distro_db[i].codename);
break;
diff --git a/shell/shell.c b/shell/shell.c
index 0f45d227..551f4a7d 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -1640,7 +1640,7 @@ static void shell_summary_clear(ShellSummary *summary)
g_slist_free(summary->items);
summary->items = NULL;
- gtk_widget_destroy(summary->header);
+ if (summary->header) gtk_widget_destroy(summary->header);
summary->header = NULL;
}
static void shell_summary_create_header(ShellSummary *summary,