[gtk+/gtk-3-0] filechooser: add the inline-toolbar style class to the bottom toolbar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] filechooser: add the inline-toolbar style class to the bottom toolbar
- Date: Thu, 17 Mar 2011 19:46:59 +0000 (UTC)
commit 6c1524b48f11d850b2a283be4a3712e9a63863ae
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Mar 17 15:44:18 2011 -0400
filechooser: add the inline-toolbar style class to the bottom toolbar
gtk/gtkfilechooserdefault.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 034c232..4c18819 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -3766,11 +3766,12 @@ shortcuts_pane_create (GtkFileChooserDefault *impl,
toolbar = gtk_toolbar_new ();
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_MENU);
- gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
- gtk_widget_show (toolbar);
-
context = gtk_widget_get_style_context (toolbar);
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR);
+
+ gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
+ gtk_widget_show (toolbar);
/* Add bookmark button */
icon = g_themed_icon_new_with_default_fallbacks ("list-add-symbolic");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]