projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use max/min of the sensor for the threshold if not overriden by the configuration
[psensor.git]
/
src
/
ui.c
diff --git
a/src/ui.c
b/src/ui.c
index
a60a44a
..
fc5f5c3
100644
(file)
--- a/
src/ui.c
+++ b/
src/ui.c
@@
-76,21
+76,25
@@
on_delete_event_cb(GtkWidget *widget, GdkEvent *event, gpointer data)
return TRUE;
}
return TRUE;
}
-void ui_show_about_dialog()
+void ui_show_about_dialog(
void
)
{
{
+ static const char *const authors[] = { "jeanfi@gmail.com", NULL };
+
gtk_show_about_dialog
(NULL,
gtk_show_about_dialog
(NULL,
+ "authors", authors,
"comments",
_("Psensor is a GTK+ application for monitoring hardware "
"sensors"),
"copyright",
_("Copyright(c) 2010-2014 jeanfi@gmail.com"),
#if GTK_CHECK_VERSION(3, 12, 0)
"comments",
_("Psensor is a GTK+ application for monitoring hardware "
"sensors"),
"copyright",
_("Copyright(c) 2010-2014 jeanfi@gmail.com"),
#if GTK_CHECK_VERSION(3, 12, 0)
- "license-type", GTK_LICENSE_GPL_2_0
_ONLY
,
+ "license-type", GTK_LICENSE_GPL_2_0,
#endif
"logo-icon-name", "psensor",
"program-name", "Psensor",
"title", _("About Psensor"),
#endif
"logo-icon-name", "psensor",
"program-name", "Psensor",
"title", _("About Psensor"),
+ "translator-credits", _("translator-credits"),
"version", VERSION,
"website", PACKAGE_URL,
"website-label", _("Psensor Homepage"),
"version", VERSION,
"website", PACKAGE_URL,
"website-label", _("Psensor Homepage"),
@@
-194,7
+198,7
@@
void ui_window_create(struct ui_psensor *ui)
if (!ok) {
log_printf(LOG_ERR, error->message);
g_error_free(error);
if (!ok) {
log_printf(LOG_ERR, error->message);
g_error_free(error);
- return
;
+ return;
}
window = GTK_WIDGET(gtk_builder_get_object(builder, "window"));
}
window = GTK_WIDGET(gtk_builder_get_object(builder, "window"));
@@
-345,11
+349,11
@@
static int cmp_sensors(const void *p1, const void *p2)
return pos1 - pos2;
}
return pos1 - pos2;
}
-struct psensor **ui_get_sensors_ordered_by_position(
const struct ui_psensor *ui
)
+struct psensor **ui_get_sensors_ordered_by_position(
struct psensor **sensors
)
{
struct psensor **result;
{
struct psensor **result;
- result = psensor_list_copy(
ui->
sensors);
+ result = psensor_list_copy(sensors);
qsort(result,
psensor_list_size(result),
sizeof(struct psensor *),
qsort(result,
psensor_list_size(result),
sizeof(struct psensor *),