|
|
|
|
@ -2196,7 +2196,7 @@ struct temp_statusbox {
|
|
|
|
|
|
|
|
|
|
void _yon_ubl_status_box_timed_remove(struct temp_statusbox *statusstruct){
|
|
|
|
|
sleep(statusstruct->times);
|
|
|
|
|
if (statusstruct->revealer){
|
|
|
|
|
if (status_thread_busy){
|
|
|
|
|
gtk_revealer_set_reveal_child(GTK_REVEALER(statusstruct->revealer),0);
|
|
|
|
|
sleep(1);
|
|
|
|
|
gtk_widget_destroy(statusstruct->revealer);
|
|
|
|
|
@ -2205,6 +2205,10 @@ void _yon_ubl_status_box_timed_remove(struct temp_statusbox *statusstruct){
|
|
|
|
|
status_thread_busy=0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void __yon_ubl_status_box_destroyed(){
|
|
|
|
|
status_thread_busy=0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_ubl_status_box_spawn(GtkContainer *container,char *display_text, int timeout,BACKGROUND_IMAGE_TYPE type){
|
|
|
|
|
if (!status_thread_busy){
|
|
|
|
|
GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,5);
|
|
|
|
|
@ -2218,6 +2222,7 @@ void yon_ubl_status_box_spawn(GtkContainer *container,char *display_text, int ti
|
|
|
|
|
|
|
|
|
|
gtk_widget_show_all(revealer);
|
|
|
|
|
gtk_revealer_set_reveal_child(GTK_REVEALER(revealer),1);
|
|
|
|
|
g_signal_connect(G_OBJECT(revealer),"destroy", G_CALLBACK(__yon_ubl_status_box_destroyed),NULL);
|
|
|
|
|
|
|
|
|
|
gtk_widget_set_margin_bottom(label,9);
|
|
|
|
|
gtk_widget_set_margin_top(label,9);
|
|
|
|
|
|