aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 02:44:45 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 19:52:53 +0100
commiteefbdc82d4f8c67f3e89782e6253da262edcf9c5 (patch)
tree00a0d118d89e50ab3b34e5a731d48d2859499e30
parent122ec6ae462b5608f61ecc5734b0f0b20eb898c4 (diff)
FIX Cleanup about credit box
-rw-r--r--modules/devices.c6
-rw-r--r--modules/devices/printers.c2
-rw-r--r--shell/callbacks.c60
3 files changed, 42 insertions, 26 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 9aa88187..440e614a 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -20,10 +20,6 @@
#define __USE_XOPEN
#endif /* __USE_XOPEN */
-#ifndef _XOPEN_SOURCE
-#define _XOPEN_SOURCE
-#endif /* _XOPEN_SOURCE */
-
#include <gtk/gtk.h>
#include <config.h>
#include <string.h>
@@ -888,7 +884,7 @@ void hi_module_deinit(void)
sensor_shutdown();
storage_shutdown();
udisks2_shutdown();
- g_module_close(cups);
+ if(cups) g_module_close(cups);
}
const ModuleAbout *hi_module_get_about(void)
diff --git a/modules/devices/printers.c b/modules/devices/printers.c
index 25a6edd7..e849e1dc 100644
--- a/modules/devices/printers.c
+++ b/modules/devices/printers.c
@@ -67,7 +67,7 @@ init_cups(void)
if (!g_module_symbol(cups, "cupsGetDests", (gpointer) & cups_dests_get)
|| !g_module_symbol(cups, "cupsFreeDests", (gpointer) & cups_dests_free)) {
- g_module_close(cups);
+ if(cups) g_module_close(cups);
cups_init = FALSE;
}
}
diff --git a/shell/callbacks.c b/shell/callbacks.c
index 989f7202..2bf1b961 100644
--- a/shell/callbacks.c
+++ b/shell/callbacks.c
@@ -173,34 +173,54 @@ void cb_about()
GtkWidget *about;
gchar *copyright = NULL;
const gchar *authors[] = {
- _("Author:"),
- "L. A. F. Pereira",
- "",
- _("Contributors:"),
+ "L. A. F. Pereira (2003-2023)",
+ "hwspeedy(2024-)",
"Agney Lopes Roth Ferraz",
"Andrey Esin",
"Burt P.",
"Ondrej Čerman",
+ "Stewart Adam",
+ "Pascal F. Martin",
+ "TotalCaesar659",
+ "Julian Ospald",
+ "Julien Lavergne",
+ "Fernando López",
+ "PICCORO Lenz McKAY",
+ "Alexander Münch",
+ "Simon Quigley",
+ "AsciiWolf",
+ "George Schneeloch",
+ "Mattia Rizzolo",
+ "Yo",
+ "jamesbond",
+ "Ondrej Čerman",
+ "Mike Hewitt",
+ "Boris Afonot",
"",
- _("Based on work by:"),
- _("MD5 implementation by Colin Plumb (see md5.c for details)"),
- _("SHA1 implementation by Steve Reid (see sha1.c for details)"),
- _("Blowfish implementation by Paul Kocher (see blowfich.c for details)"),
- _("Raytracing benchmark by John Walker (see fbench.c for details)"),
- _("FFT benchmark by Scott Robert Ladd (see fftbench.c for details)"),
- _("Some code partly based on x86cpucaps by Osamu Kayasono"),
- _("Vendor list based on GtkSysInfo by Pissens Sebastien"),
- _("DMI support based on code by Stewart Adam"),
- _("SCSI support based on code by Pascal F. Martin"),
+ "Based on work by:",
+ "uber-graph by Christian Hergert and others.",
+ "BinReloc by Hongli Lai",
+ "decode-dimms by Philip Edelbrock",
+ "decode-dimms by Christian Zuckschwerdt",
+ "decode-dimms by Burkart Lingner",
+ "x86cpucaps by Osamu Kayasono",
+ "MD5 implementation by Colin Plumb",
+ "SHA1 implementation by Steve Reid",
+ "Blowfish implementation by Paul Kocher",
+ "Raytracing benchmark by John Walker",
+ "FFT benchmark by Scott Robert Ladd",
+ "Vendor list based on GtkSysInfo by Pissens Sebastien",
+ "DMI support based on code by Stewart Adam",
+ "SCSI support based on code by Pascal F. Martin",
+ "",
NULL
};
const gchar *artists[] = {
"Jakub Szypulka",
- _("Tango Project"),
- _("The GNOME Project"),
- _("VMWare, Inc. (USB icon from VMWare Workstation 6)"),
- _("epicbard (Fan icon, CC BY-SA 3.0)"),
- _("Roundicons"),
+ "Tango Project",
+ "The GNOME Project",
+ "epicbard",
+ "Roundicons",
NULL
};
@@ -213,7 +233,7 @@ void cb_about()
gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "Hardinfo2");
#endif
- copyright = g_strdup_printf("Copyright \302\251 2003-2023 L. A. F. Pereira, 2024-%d Hardinfo2 project", HARDINFO2_COPYRIGHT_LATEST_YEAR);
+ copyright = g_strdup_printf("Copyright \302\251 2003-2023 L. A. F. Pereira\nCopyright \302\251 2024-%d Hardinfo2 Project\n\n\n\n", HARDINFO2_COPYRIGHT_LATEST_YEAR);
gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), copyright);