X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fui.c;h=6e3b915ca891e26fa2fda6f1b57ae87948b68df1;hb=a12bc94bf9e1527448c8407c66ff6272212b2455;hp=988561b557d7c2390bea8ad640fe5b3d7e26a9c0;hpb=ee9061a5a0c2551a337d809c7040ec5790b10e0d;p=melted_gui diff --git a/src/ui.c b/src/ui.c index 988561b..6e3b915 100644 --- a/src/ui.c +++ b/src/ui.c @@ -680,3 +680,28 @@ int ui_playlist_item_dialog(omnplay_instance_t* app, playlist_item_t* item) return r; }; + +void ui_library_refresh(omnplay_instance_t* app, GtkWidget **p_win, GtkWidget **p_label) +{ + GtkWidget *win, *box, *label; + + win = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_title(GTK_WINDOW(win), _("Library refreshing...")); + gtk_window_set_default_size(GTK_WINDOW(win), 250, 100); + gtk_window_set_modal(GTK_WINDOW(win), TRUE); + gtk_window_set_transient_for(GTK_WINDOW(win), GTK_WINDOW(app->window)); + + box = gtk_vbox_new(FALSE, 0); + gtk_widget_show(box); + gtk_container_add(GTK_CONTAINER(win), box); + + label = create_label(NULL, "Requsting status...", NULL, 0), + gtk_widget_show(label); + gtk_box_pack_start (GTK_BOX(box), label, TRUE, TRUE, 0); + + gtk_window_present(GTK_WINDOW(win)); + gtk_widget_show(win); + + *p_win = win; + *p_label = label; +};