[gedit] Fix bug with rtl placing it in the right place
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix bug with rtl placing it in the right place
- Date: Fri, 23 Dec 2011 20:06:44 +0000 (UTC)
commit a98bbe0958a223702aad3a7d9f4caeda5afa3cb8
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Dec 23 21:07:33 2011 +0100
Fix bug with rtl placing it in the right place
gedit/gedit-view-frame.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 76f0e2a..e9240b4 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -1302,7 +1302,16 @@ gedit_view_frame_init (GeditViewFrame *frame)
frame->priv->slider = gedit_floating_slider_new ();
gtk_widget_set_halign (frame->priv->slider, GTK_ALIGN_END);
gtk_widget_set_valign (frame->priv->slider, GTK_ALIGN_START);
- gtk_widget_set_margin_right (frame->priv->slider, SEARCH_POPUP_MARGIN);
+
+ if (gtk_widget_get_direction (frame->priv->slider) == GTK_TEXT_DIR_LTR)
+ {
+ gtk_widget_set_margin_right (frame->priv->slider, SEARCH_POPUP_MARGIN);
+ }
+ else
+ {
+ gtk_widget_set_margin_left (frame->priv->slider, SEARCH_POPUP_MARGIN);
+ }
+
g_object_set (G_OBJECT (frame->priv->slider),
"easing", GEDIT_THEATRICS_CHOREOGRAPHER_EASING_EXPONENTIAL_IN_OUT,
"blocking", GEDIT_THEATRICS_CHOREOGRAPHER_BLOCKING_DOWNSTAGE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]