[file-roller] progressbar in statusbar missing with gtk+ 2.20
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] progressbar in statusbar missing with gtk+ 2.20
- Date: Sat, 3 Apr 2010 18:05:59 +0000 (UTC)
commit 17498a1f4b041f0773569f73d24dccb2ee6c9d7c
Author: Edward Sheldrake <ejs1920 yahoo co uk>
Date: Sat Apr 3 20:02:43 2010 +0200
progressbar in statusbar missing with gtk+ 2.20
src/fr-window.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index d9af689..ed3cb66 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5884,12 +5884,19 @@ fr_window_construct (FrWindow *window)
window->priv->progress_cid = gtk_statusbar_get_context_id (GTK_STATUSBAR (window->priv->statusbar), "progress");
statusbar = GTK_STATUSBAR (window->priv->statusbar);
+#if GTK_CHECK_VERSION (2, 19, 1)
+ statusbar_box = gtk_statusbar_get_message_area (statusbar);
+ gtk_box_set_homogeneous (GTK_BOX (statusbar_box), FALSE);
+ gtk_box_set_spacing (GTK_BOX (statusbar_box), 4);
+ gtk_box_set_child_packing (GTK_BOX (statusbar_box), statusbar->label, TRUE, TRUE, 0, GTK_PACK_START );
+#else
statusbar_box = gtk_hbox_new (FALSE, 4);
g_object_ref (statusbar->label);
gtk_container_remove (GTK_CONTAINER (statusbar->frame), statusbar->label);
gtk_box_pack_start (GTK_BOX (statusbar_box), statusbar->label, TRUE, TRUE, 0);
g_object_unref (statusbar->label);
gtk_container_add (GTK_CONTAINER (statusbar->frame), statusbar_box);
+#endif
window->priv->progress_bar = gtk_progress_bar_new ();
gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (window->priv->progress_bar), ACTIVITY_PULSE_STEP);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]