[gtranslator] Set the primary class for the toolbar directly



commit 05b208061d6087fa25d1da3bb4332f0479ede2f9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Apr 6 14:04:50 2011 +0200

    Set the primary class for the toolbar directly

 src/gtr-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 4aef4a0..2d25e2b 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1720,8 +1720,8 @@ gtr_window_draw (GtrWindow * window)
                    "model",
                    _gtr_application_get_toolbars_model (GTR_APP), NULL));
 
-  egg_editable_toolbar_set_primary_class (EGG_EDITABLE_TOOLBAR (priv->toolbar),
-                                          TRUE, NULL);
+  gtk_style_context_add_class (gtk_widget_get_style_context (priv->toolbar),
+                               GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
 
   egg_editable_toolbar_show (EGG_EDITABLE_TOOLBAR (priv->toolbar),
                              "DefaultToolBar");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]