|
|
|
@ -321,12 +321,34 @@ int yon_ubl_status_box_despawn_infinite(GtkContainer *container){
|
|
|
|
GThread *thread = g_thread_new("StatusThread",(GThreadFunc)_yon_ubl_status_box_despawn_infinite,container);
|
|
|
|
GThread *thread = g_thread_new("StatusThread",(GThreadFunc)_yon_ubl_status_box_despawn_infinite,container);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void *__yon_ubl_status_box_despawn(GtkContainer *status_container){
|
|
|
|
|
|
|
|
GList *list = gtk_container_get_children(status_container);
|
|
|
|
|
|
|
|
GtkWidget *revealer = g_list_nth_data(list,0);
|
|
|
|
|
|
|
|
struct temp_statusbox *statusstruct = malloc(sizeof(struct temp_statusbox));
|
|
|
|
|
|
|
|
statusstruct->revealer = revealer;
|
|
|
|
|
|
|
|
statusstruct->times = 0;
|
|
|
|
|
|
|
|
g_idle_add((GSourceFunc)yon_ubl_status_hide_revealer,statusstruct);
|
|
|
|
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
gtk_widget_destroy(statusstruct->revealer);
|
|
|
|
|
|
|
|
g_list_free(list);
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void yon_ubl_status_box_despawn(GtkContainer *status_container){
|
|
|
|
|
|
|
|
GList *list = gtk_container_get_children(status_container);
|
|
|
|
|
|
|
|
if (!list) return;
|
|
|
|
|
|
|
|
g_list_free(list);
|
|
|
|
|
|
|
|
g_thread_new("status_despawn",(GThreadFunc)__yon_ubl_status_box_despawn,status_container);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void yon_ubl_status_box_spawn(GtkContainer *container,char *display_text, int timeout,BACKGROUND_IMAGE_TYPE type){
|
|
|
|
void yon_ubl_status_box_spawn(GtkContainer *container,char *display_text, int timeout,BACKGROUND_IMAGE_TYPE type){
|
|
|
|
g_mutex_lock(&_render_block_mutex);
|
|
|
|
g_mutex_lock(&_render_block_mutex);
|
|
|
|
int blocked = _render_blocked;
|
|
|
|
int blocked = _render_blocked;
|
|
|
|
g_mutex_unlock(&_render_block_mutex);
|
|
|
|
g_mutex_unlock(&_render_block_mutex);
|
|
|
|
if (blocked) return;
|
|
|
|
if (blocked) return;
|
|
|
|
if (!gtk_container_get_children(container)){
|
|
|
|
if (gtk_container_get_children(container)){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,5);
|
|
|
|
GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,5);
|
|
|
|
GtkWidget *revealer = gtk_revealer_new();
|
|
|
|
GtkWidget *revealer = gtk_revealer_new();
|
|
|
|
GtkWidget *label = gtk_label_new("");
|
|
|
|
GtkWidget *label = gtk_label_new("");
|
|
|
|
@ -368,7 +390,6 @@ void yon_ubl_status_box_spawn(GtkContainer *container,char *display_text, int ti
|
|
|
|
g_signal_connect(G_OBJECT(revealer),"destroy", G_CALLBACK(__yon_ubl_status_box_destroyed),statusstruct);
|
|
|
|
g_signal_connect(G_OBJECT(revealer),"destroy", G_CALLBACK(__yon_ubl_status_box_destroyed),statusstruct);
|
|
|
|
GThread *thread = g_thread_new("StatusThread",(GThreadFunc)_yon_ubl_status_box_timed_remove,statusstruct);
|
|
|
|
GThread *thread = g_thread_new("StatusThread",(GThreadFunc)_yon_ubl_status_box_timed_remove,statusstruct);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int yon_ubl_status_set_text(GtkContainer *status_placeholder,char *text){
|
|
|
|
int yon_ubl_status_set_text(GtkContainer *status_placeholder,char *text){
|
|
|
|
GList *placeholder_children = gtk_container_get_children(status_placeholder);
|
|
|
|
GList *placeholder_children = gtk_container_get_children(status_placeholder);
|
|
|
|
|