[totem] main: Add helper function to set RTL icons



commit 982cb0f6d6c435975137e9d222fe155ad45bcb6c
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 18 12:41:37 2013 +0200

    main: Add helper function to set RTL icons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702631

 src/totem.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index 3a052a2..be4997f 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -72,11 +72,21 @@ debug_handler (const char *log_domain,
 }
 
 static void
+set_rtl_icon_name (Totem *totem,
+                  const char *widget_name,
+                  const char *icon_name)
+{
+       GtkAction *action;
+
+       action = GTK_ACTION (gtk_builder_get_object (totem->xml, widget_name));
+       gtk_action_set_icon_name (action, totem_get_rtl_icon_name (icon_name));
+}
+
+static void
 app_init (Totem *totem, char **argv)
 {
        GtkSettings *gtk_settings;
        char *sidebar_pageid;
-       GtkAction *action;
 
        if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
                g_warning ("gtk-clutter failed to initialise, expect problems from here on.");



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