GtkPathBar: Add a style class

This will allow nautilus to reuse the style on its own
pathbar widget.
This commit is contained in:
Matthias Clasen 2014-07-17 06:48:36 -04:00
parent f3ef3165df
commit f7e94a7389

View File

@ -202,6 +202,7 @@ gtk_path_bar_init (GtkPathBar *path_bar)
gtk_widget_set_redraw_on_allocate (GTK_WIDGET (path_bar), FALSE); gtk_widget_set_redraw_on_allocate (GTK_WIDGET (path_bar), FALSE);
context = gtk_widget_get_style_context (GTK_WIDGET (path_bar)); context = gtk_widget_get_style_context (GTK_WIDGET (path_bar));
gtk_style_context_add_class (context, "path-bar");
gtk_style_context_add_class (context, GTK_STYLE_CLASS_LINKED); gtk_style_context_add_class (context, GTK_STYLE_CLASS_LINKED);
path_bar->priv->get_info_cancellable = NULL; path_bar->priv->get_info_cancellable = NULL;