[gnome-control-center] network: RTL flipping for details arrow
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: RTL flipping for details arrow
- Date: Tue, 25 Sep 2012 11:14:34 +0000 (UTC)
commit 52387c58bea62059b4c99d1c7c176ba1d1281117
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 22 13:32:24 2012 -0400
network: RTL flipping for details arrow
https://bugzilla.gnome.org/show_bug.cgi?id=684604
panels/network/net-device-wifi.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 99a334e..3b8d5f6 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1739,12 +1739,23 @@ set_arrow_image (GtkCellLayout *layout,
GtkTreeIter *iter,
gpointer user_data)
{
+ NetDeviceWifi *device = user_data;
const gchar *icon;
- if (arrow_visible (model, iter))
- icon = "go-next";
- else
+ if (arrow_visible (model, iter)) {
+ GtkWidget *widget;
+
+ widget = GTK_WIDGET (gtk_builder_get_object (device->priv->builder,
+ "treeview_list"));
+
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
+ icon = "go-previous";
+ else
+ icon = "go-next";
+ }
+ else {
icon = "";
+ }
g_object_set (cell, "icon-name", icon, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]