mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
toolbar: use a raised button for Search
This commit is contained in:
parent
eb340743b2
commit
e021dd0f9c
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,7 @@ nautilus_toolbar_constructed (GObject *obj)
|
|||
{
|
||||
NautilusToolbar *self = NAUTILUS_TOOLBAR (obj);
|
||||
GtkToolItem *item;
|
||||
GtkWidget *hbox, *toolbar;
|
||||
GtkWidget *hbox, *toolbar, *search;
|
||||
GtkStyleContext *context;
|
||||
const gchar *ui;
|
||||
|
||||
|
@ -107,6 +107,9 @@ nautilus_toolbar_constructed (GObject *obj)
|
|||
context = gtk_widget_get_style_context (toolbar);
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
|
||||
|
||||
search = gtk_ui_manager_get_widget (self->priv->ui_manager, "/Toolbar/Search");
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (search), GTK_STYLE_CLASS_RAISED);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (self), self->priv->toolbar, TRUE, TRUE, 0);
|
||||
gtk_widget_show_all (self->priv->toolbar);
|
||||
|
||||
|
|
Loading…
Reference in a new issue