From 1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8 Mon Sep 17 00:00:00 2001 From: Laszlo Boros Date: Sun, 18 Aug 2013 01:26:29 +0200 Subject: GTK3 support --- src/eom-statusbar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/eom-statusbar.c') diff --git a/src/eom-statusbar.c b/src/eom-statusbar.c index f234dcd..c791701 100644 --- a/src/eom-statusbar.c +++ b/src/eom-statusbar.c @@ -58,10 +58,14 @@ eom_statusbar_init (EomStatusbar *statusbar) statusbar->priv = EOM_STATUSBAR_GET_PRIVATE (statusbar); priv = statusbar->priv; + #if !GTK_CHECK_VERSION(3, 0, 0) gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbar), TRUE); + #endif priv->img_num_statusbar = gtk_statusbar_new (); + #if !GTK_CHECK_VERSION(3, 0, 0) gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (priv->img_num_statusbar), FALSE); + #endif gtk_widget_set_size_request (priv->img_num_statusbar, 100, 10); gtk_widget_show (priv->img_num_statusbar); @@ -147,6 +151,7 @@ eom_statusbar_set_progress (EomStatusbar *statusbar, } } +#if !GTK_CHECK_VERSION(3, 0, 0) void eom_statusbar_set_has_resize_grip (EomStatusbar *statusbar, gboolean has_resize_grip) { @@ -155,3 +160,4 @@ eom_statusbar_set_has_resize_grip (EomStatusbar *statusbar, gboolean has_resize_ gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbar), has_resize_grip); } +#endif \ No newline at end of file -- cgit v1.2.1