#include "../Inc/ui.h" #include "../Inc/error.h" gboolean update_ButtonMain_label(gpointer data) { const char* new_label_text = (const char*)data; gtk_button_set_label(GTK_BUTTON(widgets.ButtonMain), new_label_text); return FALSE; } gboolean update_LableCurrentPressure(gpointer data){ const char* new_label_text = (const char*)data; gtk_label_set_text(GTK_LABEL(widgets.LabelCurrentPressure), new_label_text); return FALSE; } gboolean update_LableSensorPressure(gpointer data){ const char* new_label_text = (const char*)data; gtk_label_set_text(GTK_LABEL(widgets.LabelSensorPressure), new_label_text); return FALSE; } gboolean set_Color_ButtonMain_red(gpointer data){ set_button_color_red(widgets.ButtonMain); return FALSE; } gboolean set_Color_ButtonMain_green(gpointer data){ set_button_color_green(widgets.ButtonMain); return FALSE; } gboolean set_Color_ButtonMain_white(gpointer data){ set_button_color_white(widgets.ButtonMain); return FALSE; } gboolean update_Error_Table(gpointer data){ uint8_t error_code = GPOINTER_TO_UINT(data); update_error_table(error_code); // create_error_code_table(error_code); return FALSE; }