[gedit] Set "title" class to the sidepane title
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Set "title" class to the sidepane title
- Date: Wed, 22 Feb 2012 22:26:57 +0000 (UTC)
commit 6b7088aacf61db563eb65d772f1eb38d031f26b2
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Feb 22 23:26:14 2012 +0100
Set "title" class to the sidepane title
gedit/gedit-panel.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-panel.c b/gedit/gedit-panel.c
index 38ad616..7481bec 100644
--- a/gedit/gedit-panel.c
+++ b/gedit/gedit-panel.c
@@ -547,15 +547,17 @@ build_horizontal_panel (GeditPanel *panel)
static void
build_vertical_panel (GeditPanel *panel)
{
- GtkWidget *close_button;
+ GtkStyleContext *context;
GtkWidget *title_hbox;
GtkWidget *icon_name_hbox;
GtkWidget *dummy_label;
+ GtkWidget *close_button;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (panel));
+ gtk_style_context_add_class (context, "title");
/* Create title hbox */
title_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_widget_set_name (title_hbox, "gedit-panel-title");
-
gtk_box_pack_start (GTK_BOX (panel->priv->main_box), title_hbox,
FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]