[gnome-games] aisleriot: Use the new window resize grip on gtk 3
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Use the new window resize grip on gtk 3
- Date: Fri, 8 Oct 2010 16:17:55 +0000 (UTC)
commit af821a1e0aa891a68239fb4b9a8c5e303e3c9c93
Author: Christian Persch <chpe gnome org>
Date: Fri Oct 8 18:17:11 2010 +0200
aisleriot: Use the new window resize grip on gtk 3
aisleriot/window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 7fbf5f1..41596ed 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -2124,11 +2124,13 @@ aisleriot_window_state_event (GtkWidget *widget,
set_fullscreen_button_active (window);
#ifndef HAVE_HILDON
+#if !GTK_CHECK_VERSION (2, 91, 0)
#if GTK_CHECK_VERSION (2, 11, 0)
gtk_statusbar_set_has_resize_grip (priv->statusbar, !is_maximised && !is_fullscreen);
#else
gtk_statusbar_set_has_resize_grip (priv->statusbar, FALSE);
#endif
+#endif /* GTK < 3.0 */
#endif /* !HAVE_HILDON */
}
@@ -2569,11 +2571,15 @@ aisleriot_window_init (AisleriotWindow *window)
G_CALLBACK (board_status_message_cb), window);
#endif
+#if GTK_CHECK_VERSION (2, 91, 0)
+ gtk_window_set_has_resize_grip (GTK_WINDOW (window), TRUE);
+#else
#if GTK_CHECK_VERSION (2, 11, 0)
gtk_statusbar_set_has_resize_grip (priv->statusbar, TRUE);
#else
gtk_statusbar_set_has_resize_grip (priv->statusbar, FALSE);
#endif
+#endif /* GTK 3.0 */
#if GTK_CHECK_VERSION (2, 19, 1)
statusbar_hbox = gtk_statusbar_get_message_area (statusbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]