[totem] Revert "backend: Set button arrow icons according to locale's text direction"



commit 0105fe90106d443aff282396f43e92f5d960627f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jul 1 16:35:51 2013 +0200

    Revert "backend: Set button arrow icons according to locale's text direction"
    
    This reverts commit d5997db27969a0653ea42c388b9efb3c22ad828c.

 src/backend/bvw-test.c |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/backend/bvw-test.c b/src/backend/bvw-test.c
index 8b4aa73..d853ea6 100644
--- a/src/backend/bvw-test.c
+++ b/src/backend/bvw-test.c
@@ -80,7 +80,6 @@ int main
        GtkBox *box;
        GtkToolItem *item;
        GtkWidget *image;
-       gchar *icon_start, *icon_skip_forward, *icon_skip_backward;
 
 #ifdef GDK_WINDOWING_X11
        XInitThreads ();
@@ -89,16 +88,6 @@ int main
        if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
                g_assert_not_reached ();
 
-       if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) {
-               icon_start = "media-playback-start-rtl-symbolic";
-               icon_skip_forward = "media-skip-forward-rtl-symbolic";
-               icon_skip_backward = "media-skip-backward-rtl-symbolic";
-       } else {
-               icon_start = "media-playback-start-symbolic";
-               icon_skip_forward = "media-skip-forward-symbolic";
-               icon_skip_backward = "media-skip-backward-symbolic";
-       }
-
        context = g_option_context_new ("- Play audio and video inside a web browser");
        baconoptiongroup = bacon_video_widget_get_option_group();
        g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE);
@@ -140,17 +129,17 @@ int main
 
        /* Previous */
        item = gtk_tool_button_new (NULL, NULL);
-       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), icon_skip_backward);
+       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "media-skip-backward-symbolic");
        gtk_box_pack_start (box, GTK_WIDGET (item), FALSE, FALSE, 0);
 
        /* Play/Pause */
        item = gtk_tool_button_new (NULL, NULL);
-       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), icon_start);
+       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "media-playback-start-symbolic");
        gtk_box_pack_start (box, GTK_WIDGET (item), FALSE, FALSE, 0);
 
        /* Next */
        item = gtk_tool_button_new (NULL, NULL);
-       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), icon_skip_forward);
+       gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "media-skip-forward-symbolic");
        gtk_box_pack_start (box, GTK_WIDGET (item), FALSE, FALSE, 0);
 
        /* Separator */


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