From ca6ee5bae777e59920dd7b018008e2fa5f8a5392 Mon Sep 17 00:00:00 2001 From: jamesbond Date: Sun, 25 Oct 2015 15:40:36 -0200 Subject: stability fixes & add fatdog64 recognition --- includes/computer.h | 2 ++ modules/computer/os.c | 8 ++++++++ shell/shell.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3