[nautilus/gnome-3-20] pathbar: add slider-button class to sliders
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] pathbar: add slider-button class to sliders
- Date: Wed, 23 Mar 2016 08:33:35 +0000 (UTC)
commit 52a4bcc7278e73784638d7a8f0159a8517e32056
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 21 20:55:34 2016 +0100
pathbar: add slider-button class to sliders
So they behave like the file chooser ones.
src/nautilus-pathbar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 50ab51f..133c3dd 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -313,6 +313,10 @@ nautilus_path_bar_init (NautilusPathBar *path_bar)
path_bar->priv->up_slider_button = get_slider_button (path_bar, "pan-start-symbolic");
path_bar->priv->down_slider_button = get_slider_button (path_bar, "pan-end-symbolic");
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET
(path_bar->priv->up_slider_button)),
+ "slider-button");
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET
(path_bar->priv->down_slider_button)),
+ "slider-button");
g_signal_connect_swapped (path_bar->priv->up_slider_button, "clicked", G_CALLBACK
(nautilus_path_bar_scroll_up), path_bar);
g_signal_connect_swapped (path_bar->priv->down_slider_button, "clicked", G_CALLBACK
(nautilus_path_bar_scroll_down), path_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]