[totem] main: Simplify setting RTL icons



commit e14abc38a6cd6f145d837d624014ae877f941a44
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 18 12:43:34 2013 +0200

    main: Simplify setting RTL icons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702631

 src/totem.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index be4997f..b1a630a 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -102,14 +102,9 @@ app_init (Totem *totem, char **argv)
        if (totem->xml == NULL)
                totem_object_exit (NULL);
 
-       action = GTK_ACTION (gtk_builder_get_object (totem->xml, "play"));
-       gtk_action_set_icon_name (action, totem_get_rtl_icon_name ("media-playback-start"));
-
-       action = GTK_ACTION (gtk_builder_get_object (totem->xml, "next-chapter"));
-       gtk_action_set_icon_name (action, totem_get_rtl_icon_name ("media-skip-forward"));
-
-       action = GTK_ACTION (gtk_builder_get_object (totem->xml, "previous-chapter"));
-       gtk_action_set_icon_name (action, totem_get_rtl_icon_name ("media-skip-backward"));
+       set_rtl_icon_name (totem, "play", "media-playback-start");
+       set_rtl_icon_name (totem, "next-chapter", "media-skip-forward");
+       set_rtl_icon_name (totem, "previous-chapter", "media-skip-backward");
 
        totem->win = GTK_WIDGET (gtk_builder_get_object (totem->xml, "totem_main_window"));
        gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (totem->win), TRUE);



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