X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_pref.c;h=c4d726449ff7bee5f6ff61f46e16469da94e7859;hb=73de4a553c122a608ca9ee401e306fc3ab03c03a;hp=8748365661975f119bdaeb8f94ee8ec658f21cb3;hpb=4b047260698f1241e0e0ee89e52aea685652553f;p=psensor.git diff --git a/src/ui_pref.c b/src/ui_pref.c index 8748365..c4d7264 100644 --- a/src/ui_pref.c +++ b/src/ui_pref.c @@ -153,7 +153,7 @@ void ui_pref_dialog_run(struct ui_psensor *ui) double value; GdkColor color; - g_mutex_lock(ui->sensors_mutex); + pthread_mutex_lock(&ui->sensors_mutex); gtk_color_button_get_color(w_color_fg, &color); color_set(cfg->graph_fgcolor, @@ -221,7 +221,7 @@ void ui_pref_dialog_run(struct ui_psensor *ui) config_save(cfg); - g_mutex_unlock(ui->sensors_mutex); + pthread_mutex_unlock(&ui->sensors_mutex); ui_window_update(ui); }