[gnome-games] aisleriot: add a primary-toolbar style class to the toolbar
- From: Luca Ferretti <lferrett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: add a primary-toolbar style class to the toolbar
- Date: Fri, 25 Mar 2011 21:00:31 +0000 (UTC)
commit 3a37b04ea7d3afd2e5c2fc4e084c4ea169c3e3e4
Author: Nacho <nacho resa gmail com>
Date: Fri Mar 25 22:00:18 2011 +0100
aisleriot: add a primary-toolbar style class to the toolbar
aisleriot/window.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 7d173f4..1af44ec 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -2536,6 +2536,11 @@ aisleriot_window_init (AisleriotWindow *window)
priv->main_menu = gtk_ui_manager_get_widget (priv->ui_manager, MAIN_MENU_UI_PATH);
priv->toolbar = gtk_ui_manager_get_widget (priv->ui_manager, TOOLBAR_UI_PATH);
+#if GTK_CHECK_VERSION (3, 0, 3)
+ gtk_style_context_add_class (gtk_widget_get_style_context (priv->toolbar),
+ GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+#endif
+
/* Defer building the card themes menu until its parent's menu is opened */
#ifdef HAVE_HILDON
/* FIXMEchpe check this works! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]