[gedit/gnome-3-0] filebrowser: set toolbar style as primary
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-0] filebrowser: set toolbar style as primary
- Date: Sat, 18 Jun 2011 09:38:47 +0000 (UTC)
commit a00dd3d4da329eaee19c03c38f1b5e96e6fc39cc
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Jun 18 11:37:10 2011 +0200
filebrowser: set toolbar style as primary
plugins/filebrowser/gedit-file-browser-widget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c
index 57161b0..734603c 100644
--- a/plugins/filebrowser/gedit-file-browser-widget.c
+++ b/plugins/filebrowser/gedit-file-browser-widget.c
@@ -911,6 +911,7 @@ create_toolbar (GeditFileBrowserWidget *obj,
GtkActionGroup *action_group;
GtkWidget *toolbar;
GtkWidget *widget;
+ GtkStyleContext *context;
GtkAction *action;
gchar *ui_file;
@@ -1016,6 +1017,8 @@ create_toolbar (GeditFileBrowserWidget *obj,
toolbar = gtk_ui_manager_get_widget (manager, "/ToolBar");
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_MENU);
+ context = gtk_widget_get_style_context (toolbar);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
/* Previous directory menu tool item */
obj->priv->location_previous_menu = gtk_menu_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]