[gtkhtml] Bug 671434 - GtkhtmlEditor does not use the primary toolbar style
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug 671434 - GtkhtmlEditor does not use the primary toolbar style
- Date: Mon, 26 Mar 2012 16:19:21 +0000 (UTC)
commit 8268a688d29abd7f91978007993ab760402c6f81
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Mar 26 12:17:05 2012 -0400
Bug 671434 - GtkhtmlEditor does not use the primary toolbar style
components/editor/gtkhtml-editor-private.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/components/editor/gtkhtml-editor-private.c b/components/editor/gtkhtml-editor-private.c
index 293aebc..f9c5d3d 100644
--- a/components/editor/gtkhtml-editor-private.c
+++ b/components/editor/gtkhtml-editor-private.c
@@ -220,7 +220,6 @@ gtkhtml_editor_private_constructed (GtkhtmlEditor *editor)
GtkHTML *html;
GtkWidget *widget;
- GtkStyleContext *style_context;
GtkToolbar *toolbar;
GtkToolItem *tool_item;
@@ -236,10 +235,9 @@ gtkhtml_editor_private_constructed (GtkhtmlEditor *editor)
priv->main_toolbar = g_object_ref (widget);
gtk_widget_show (widget);
- style_context = gtk_widget_get_style_context (widget);
- gtk_style_context_save (style_context);
-
- gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+ gtk_style_context_add_class (
+ gtk_widget_get_style_context (widget),
+ GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
widget = gtkhtml_editor_get_managed_widget (editor, "/edit-toolbar");
gtk_toolbar_set_style (GTK_TOOLBAR (widget), GTK_TOOLBAR_BOTH_HORIZ);
@@ -370,8 +368,6 @@ gtkhtml_editor_private_constructed (GtkhtmlEditor *editor)
widget = WIDGET (TABLE_PROPERTIES_COLOR_COMBO);
gtkhtml_color_combo_set_palette (
GTKHTML_COLOR_COMBO (widget), priv->palette);
-
- gtk_style_context_restore (style_context);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]