summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-container.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-11-12 10:15:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-11-12 10:15:05 +0000
commit28f882c2fc321ae9ec0aa9387806ea3981e5191f (patch)
tree6f2b246f3a38496a3759bc64e80a8b0478dab326 /libnautilus-private/nautilus-icon-container.h
parent1fa35b1c9b0ae68d5b68afe38f703fb3a1c25a22 (diff)
downloadnautilus-28f882c2fc321ae9ec0aa9387806ea3981e5191f.tar.gz
Handle RTL layout of icons (#342009) Patch from Yair Hershkovitz
2007-11-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-icon-canvas-item.c: * libnautilus-private/nautilus-icon-container.c: * libnautilus-private/nautilus-icon-container.h: * libnautilus-private/nautilus-icon-dnd.c: * libnautilus-private/nautilus-icon-private.h: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-icon-view.c: Handle RTL layout of icons (#342009) Patch from Yair Hershkovitz svn path=/trunk/; revision=13413
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.h')
-rw-r--r--libnautilus-private/nautilus-icon-container.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-container.h b/libnautilus-private/nautilus-icon-container.h
index e1a21287b..36e0ddb25 100644
--- a/libnautilus-private/nautilus-icon-container.h
+++ b/libnautilus-private/nautilus-icon-container.h
@@ -56,6 +56,7 @@ typedef struct {
typedef enum {
NAUTILUS_ICON_LAYOUT_L_R_T_B,
+ NAUTILUS_ICON_LAYOUT_R_L_T_B,
NAUTILUS_ICON_LAYOUT_T_B_L_R,
NAUTILUS_ICON_LAYOUT_T_B_R_L
} NautilusIconLayoutMode;
@@ -299,4 +300,16 @@ gboolean nautilus_icon_container_get_allow_moves (Nautilu
void nautilus_icon_container_set_allow_moves (NautilusIconContainer *container,
gboolean allow_moves);
+gboolean nautilus_icon_container_is_layout_rtl (NautilusIconContainer *container);
+
+#define CANVAS_WIDTH(container) ((GTK_WIDGET (container)->allocation.width \
+ - container->details->left_margin \
+ - container->details->right_margin) \
+ / EEL_CANVAS (container)->pixels_per_unit)
+
+#define CANVAS_HEIGHT(container) ((GTK_WIDGET (container)->allocation.height \
+ - container->details->top_margin \
+ - container->details->bottom_margin) \
+ / EEL_CANVAS (container)->pixels_per_unit)
+
#endif /* NAUTILUS_ICON_CONTAINER_H */