diff --git a/src/sview/common.c b/src/sview/common.c index 132adf85f885056184268eb3bd56378ac0e81968..31358762b4c57e5a21d41f73b811af5fb18454db 100644 --- a/src/sview/common.c +++ b/src/sview/common.c @@ -140,11 +140,13 @@ static void *_editing_thr(gpointer arg) { int msg_id = GPOINTER_TO_INT(arg); sleep(5); + g_static_mutex_lock(&sview_mutex); gdk_threads_enter(); gtk_statusbar_remove(GTK_STATUSBAR(main_statusbar), STATUS_ADMIN_EDIT, msg_id); gdk_flush(); gdk_threads_leave(); + g_static_mutex_unlock(&sview_mutex); return NULL; }