[totem/gnome-3-10] main: Add helper function to set RTL icons
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-10] main: Add helper function to set RTL icons
- Date: Wed, 18 Sep 2013 12:57:39 +0000 (UTC)
commit 185c7aad8099ee6bf5dd685592928f4e23628268
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 | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index b8f2ecf..428b336 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -71,6 +71,17 @@ 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]