diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-29 20:40:38 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-29 20:40:38 +0900 |
commit | 159aa6f695197e17b88b53ae115ed4052e7e8ab8 (patch) | |
tree | 054ac1289e8b5c5a09674348adbd33db290b7806 /gladeui/glade-design-view.c | |
parent | 7a745a128fd8b69d35058a3e102d82859470e0df (diff) | |
download | glade-159aa6f695197e17b88b53ae115ed4052e7e8ab8.tar.gz |
* gladeui/glade-design-view.c: Made loading progress bar nicer looking and ellipsizing.
Diffstat (limited to 'gladeui/glade-design-view.c')
-rw-r--r-- | gladeui/glade-design-view.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gladeui/glade-design-view.c b/gladeui/glade-design-view.c index 201d3d83..e75b51fd 100644 --- a/gladeui/glade-design-view.c +++ b/gladeui/glade-design-view.c @@ -155,7 +155,7 @@ glade_design_view_get_property (GObject *object, static void glade_design_view_init (GladeDesignView *view) { - GtkWidget *viewport, *filler; + GtkWidget *viewport, *filler, *align; view->priv = GLADE_DESIGN_VIEW_GET_PRIVATE (view); @@ -184,10 +184,17 @@ glade_design_view_init (GladeDesignView *view) filler = gtk_label_new (NULL); gtk_widget_show (filler); gtk_box_pack_start (GTK_BOX (view->priv->progress_window), filler, TRUE, TRUE, 0); + + align = gtk_alignment_new (0.5, 0.5, 0.75, 1.0); + gtk_widget_show (align); + gtk_box_pack_start (GTK_BOX (view->priv->progress_window), align, FALSE, TRUE, 0); + view->priv->progress = gtk_progress_bar_new (); gtk_progress_bar_set_show_text (GTK_PROGRESS_BAR (view->priv->progress), TRUE); + gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (view->priv->progress), PANGO_ELLIPSIZE_END); gtk_widget_show (view->priv->progress); - gtk_box_pack_start (GTK_BOX (view->priv->progress_window), view->priv->progress, FALSE, TRUE, 0); + gtk_container_add (GTK_CONTAINER (align), view->priv->progress); + filler = gtk_label_new (NULL); gtk_widget_show (filler); gtk_box_pack_start (GTK_BOX (view->priv->progress_window), filler, TRUE, TRUE, 0); |