[goobox] Use in rtl-symbolic instead in symbol in the opposite direction and fix playback-start symbol



commit 2511ab2c46df82fbfb3a777fd2d18295bd003c95
Author: Yosef Or Boczko <yosefor3 walla com>
Date:   Fri Jun 21 01:08:59 2013 +0300

    Use in rtl-symbolic instead in symbol in the opposite direction and fix playback-start symbol

 src/goo-player-bar.c |    6 +++---
 src/goo-stock.h      |    3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/goo-player-bar.c b/src/goo-player-bar.c
index 6c93e20..0c57db1 100644
--- a/src/goo-player-bar.c
+++ b/src/goo-player-bar.c
@@ -281,7 +281,7 @@ goo_player_bar_construct (GooPlayerBar   *self,
 
        /* Play buttons */
 
-       button = _gtk_button_new_from_icon_name (GOO_STOCK_PLAY, PLAY_BUTTON_SIZE);
+       button = _gtk_button_new_from_icon_name (rtl ? GOO_STOCK_PLAY_RTL : GOO_STOCK_PLAY, PLAY_BUTTON_SIZE);
        _gtk_button_sync_with_action (button, gtk_action_group_get_action (actions, "TogglePlay"));
        g_signal_connect (gtk_action_group_get_action (actions, "TogglePlay"),
                          "notify::icon-name",
@@ -293,11 +293,11 @@ goo_player_bar_construct (GooPlayerBar   *self,
        gtk_style_context_add_class (gtk_widget_get_style_context (button_box), GTK_STYLE_CLASS_LINKED);
        gtk_box_pack_start (GTK_BOX (main_box), button_box, FALSE, FALSE, 0);
 
-       button = _gtk_button_new_from_icon_name (rtl ? GOO_STOCK_NEXT : GOO_STOCK_PREV, 
GTK_ICON_SIZE_SMALL_TOOLBAR);
+       button = _gtk_button_new_from_icon_name (rtl ? GOO_STOCK_PREV_RTL : GOO_STOCK_PREV, 
GTK_ICON_SIZE_SMALL_TOOLBAR);
        _gtk_button_sync_with_action (button, gtk_action_group_get_action (actions, "Prev"));
        gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 0);
 
-       button = _gtk_button_new_from_icon_name (rtl ? GOO_STOCK_PREV : GOO_STOCK_NEXT, 
GTK_ICON_SIZE_SMALL_TOOLBAR);
+       button = _gtk_button_new_from_icon_name (rtl ? GOO_STOCK_NEXT_RTL : GOO_STOCK_NEXT, 
GTK_ICON_SIZE_SMALL_TOOLBAR);
        _gtk_button_sync_with_action (button, gtk_action_group_get_action (actions, "Next"));
        gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 0);
 
diff --git a/src/goo-stock.h b/src/goo-stock.h
index ac3c096..1092cdb 100644
--- a/src/goo-stock.h
+++ b/src/goo-stock.h
@@ -24,10 +24,13 @@
 #define GOO_STOCK_H
 
 #define GOO_STOCK_PLAY        "media-playback-start-symbolic"
+#define GOO_STOCK_PLAY_RTL    "media-playback-start-rtl-symbolic"
 #define GOO_STOCK_PAUSE       "media-playback-pause-symbolic"
 #define GOO_STOCK_STOP        "media-playback-stop-symbolic"
 #define GOO_STOCK_NEXT        "media-skip-forward-symbolic"
+#define GOO_STOCK_NEXT_RTL    "media-skip-forward-rtl-symbolic"
 #define GOO_STOCK_PREV        "media-skip-backward-symbolic"
+#define GOO_STOCK_PREV_RTL    "media-skip-backward-rtl-symbolic"
 #define GOO_STOCK_EJECT       "media-eject-symbolic"
 #define GOO_STOCK_EXTRACT     "document-save-symbolic"
 #define GOO_STOCK_RESET       "goo-reset"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]