[eog] EogScrollView: Make overlay buttons use the 'osd' style class
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogScrollView: Make overlay buttons use the 'osd' style class
- Date: Wed, 28 Jan 2015 20:04:42 +0000 (UTC)
commit 963d754d5008f311c44f8a36dde36c142867e91e
Author: Felix Riemann <friemann gnome org>
Date: Wed Jan 28 19:32:35 2015 +0100
EogScrollView: Make overlay buttons use the 'osd' style class
src/eog-scroll-view.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 4f09678..d936b32 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -2946,6 +2946,8 @@ eog_scroll_view_init (EogScrollView *view)
gtk_actionable_set_action_name(GTK_ACTIONABLE (button), "win.go-next");
gtk_widget_set_tooltip_text (button,
_("Go to the next image of the gallery"));
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ GTK_STYLE_CLASS_OSD);
button = gtk_button_new_from_icon_name("go-previous-symbolic",
@@ -2956,7 +2958,8 @@ eog_scroll_view_init (EogScrollView *view)
"win.go-previous");
gtk_widget_set_tooltip_text (button,
_("Go to the previous image of the gallery"));
-
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ GTK_STYLE_CLASS_OSD);
/* group rotate buttons into a box */
@@ -2968,6 +2971,8 @@ eog_scroll_view_init (EogScrollView *view)
"win.rotate-270");
gtk_widget_set_tooltip_text (button,
_("Rotate the image 90 degrees to the left"));
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ GTK_STYLE_CLASS_OSD);
gtk_container_add (GTK_CONTAINER (bottomBox), button);
@@ -2977,6 +2982,8 @@ eog_scroll_view_init (EogScrollView *view)
"win.rotate-90");
gtk_widget_set_tooltip_text (button,
_("Rotate the image 90 degrees to the right"));
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ GTK_STYLE_CLASS_OSD);
gtk_container_add (GTK_CONTAINER (bottomBox), button);
gtk_container_add (GTK_CONTAINER (priv->bottom_revealer), bottomBox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]