[gedit] panel: add vertical/horizontal classes
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] panel: add vertical/horizontal classes
- Date: Wed, 24 Apr 2013 12:21:32 +0000 (UTC)
commit d3b5ad1892c7378739e61e2be70c263542fee16f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Apr 24 14:20:33 2013 +0200
panel: add vertical/horizontal classes
gedit/gedit-panel.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-panel.c b/gedit/gedit-panel.c
index 7f3d450..1a876e7 100644
--- a/gedit/gedit-panel.c
+++ b/gedit/gedit-panel.c
@@ -615,18 +615,23 @@ static void
gedit_panel_constructed (GObject *object)
{
GeditPanel *panel = GEDIT_PANEL (object);
+ GtkStyleContext *context;
/* Build the panel, now that we know the orientation
(_init has been called previously) */
+ context = gtk_widget_get_style_context (GTK_WIDGET (panel));
+
build_notebook_for_panel (panel);
if (panel->priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
build_horizontal_panel (panel);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
}
else
{
build_vertical_panel (panel);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_VERTICAL);
}
g_signal_connect (panel,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]