summaryrefslogtreecommitdiff
path: root/mate-session
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-27 14:27:58 +0100
committerStefano Karapetsas <[email protected]>2014-03-27 14:27:58 +0100
commitad171bfe8696f7ea80fe64cdfbb8bdeeefb41d00 (patch)
tree5e96e32dd2baf184a5414631526488d66ed5111a /mate-session
parentdb10b7d3438502bd7f0b84b36c8a205103951d73 (diff)
downloadmate-session-manager-ad171bfe8696f7ea80fe64cdfbb8bdeeefb41d00.tar.bz2
mate-session-manager-ad171bfe8696f7ea80fe64cdfbb8bdeeefb41d00.tar.xz
Fix progress bar usage with GTK3
Diffstat (limited to 'mate-session')
-rw-r--r--mate-session/gsm-logout-dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c
index 1f5846b..da3d651 100644
--- a/mate-session/gsm-logout-dialog.c
+++ b/mate-session/gsm-logout-dialog.c
@@ -505,6 +505,9 @@ gsm_get_dialog (GsmDialogLogoutType type,
hbox = gtk_hbox_new (FALSE, 0);
#endif
logout_dialog->priv->progressbar = gtk_progress_bar_new ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_progress_bar_set_show_text (GTK_PROGRESS_BAR (logout_dialog->priv->progressbar), TRUE);
+#endif
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (logout_dialog->priv->progressbar), 1.0);
gtk_box_pack_start (GTK_BOX (hbox),
logout_dialog->priv->progressbar,