#include <stdlib.h>
#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
{
    GtkWidget *window;
    GtkWidget *status_bar;
    gint context_id;

    gtk_init (&argc, &argv);

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_widget_set_size_request (GTK_WIDGET (window), 300, 100);
    gtk_window_set_title (GTK_WINDOW (window), "Statusbar bug demo");
    g_signal_connect (G_OBJECT (window), "delete_event",
                      G_CALLBACK (exit), NULL);
 
    status_bar = gtk_statusbar_new ();      
    gtk_statusbar_push (GTK_STATUSBAR (status_bar), context_id, "در حال باز کردن...");
    gtk_container_add (GTK_CONTAINER (window), status_bar);

    gtk_widget_show_all (window);

    gtk_main ();

    return 0;
}
