r16098 - gnucash/trunk/src/register/register-gnome - Make date picker in registers visible for rtl locales like hebrew, #386816.
Andreas Köhler
andi5 at cvs.gnucash.org
Fri May 18 17:41:34 EDT 2007
Author: andi5
Date: 2007-05-18 17:41:32 -0400 (Fri, 18 May 2007)
New Revision: 16098
Trac: http://svn.gnucash.org/trac/changeset/16098
Modified:
gnucash/trunk/src/register/register-gnome/gnucash-date-picker.c
Log:
Make date picker in registers visible for rtl locales like hebrew, #386816.
The calendar popup starts at x=0, but in a right-to-left interface it is
drawn to the left, i.e. out off the window. This can be avoided by
overwriting the default direction of the surrounding horizontal box.
Modified: gnucash/trunk/src/register/register-gnome/gnucash-date-picker.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/gnucash-date-picker.c 2007-05-18 15:14:01 UTC (rev 16097)
+++ gnucash/trunk/src/register/register-gnome/gnucash-date-picker.c 2007-05-18 21:41:32 UTC (rev 16098)
@@ -219,6 +219,7 @@
hbox = gtk_hbox_new (FALSE, 0);
+ gtk_widget_set_direction (hbox, GTK_TEXT_DIR_LTR);
gtk_box_pack_start (GTK_BOX(hbox), calendar, TRUE, TRUE, 0);
item = gnome_canvas_item_new (parent, gnc_date_picker_get_type (),
More information about the gnucash-changes
mailing list