[Xfce4-commits] <midori:master> With GTK+3 we have to put-in for progressbar text

Christian Dywan noreply at xfce.org
Fri Jul 13 00:14:01 CEST 2012


Updating branch refs/heads/master
         to d2ebd4797d3bbdf6ec994710e5417ba988290a4a (commit)
       from c13da3b1b390fc242e1b368c7e6b2e1087fb801a (commit)

commit d2ebd4797d3bbdf6ec994710e5417ba988290a4a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Jul 13 00:10:08 2012 +0200

    With GTK+3 we have to put-in for progressbar text

 toolbars/midori-transferbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/toolbars/midori-transferbar.c b/toolbars/midori-transferbar.c
index d195039..5ab4ca9 100644
--- a/toolbars/midori-transferbar.c
+++ b/toolbars/midori-transferbar.c
@@ -254,6 +254,9 @@ midori_transferbar_add_download_item (MidoriTransferbar* transferbar,
 
     box = gtk_hbox_new (FALSE, 0);
     progress = gtk_progress_bar_new ();
+    #if GTK_CHECK_VERSION (3, 0, 0)
+    gtk_progress_bar_set_show_text (GTK_PROGRESS_BAR (progress), TRUE);
+    #endif
     gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (progress),
                                     PANGO_ELLIPSIZE_MIDDLE);
     if ((uri = webkit_download_get_destination_uri (download)))


More information about the Xfce4-commits mailing list