[Gnucash-changes] Scott Oonk's fix to make the cursor visible in
the register.
David Hampton
hampton at cvs.gnucash.org
Mon Aug 15 19:34:42 EDT 2005
Log Message:
-----------
Scott Oonk's fix to make the cursor visible in the register.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/register/register-gnome:
gnucash-item-edit.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.262
retrieving revision 1.1487.2.263
diff -LChangeLog -LChangeLog -u -r1.1487.2.262 -r1.1487.2.263
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2005-08-15 David Hampton <hampton at employees.org>
+
+ * src/register/register-gnome/gnucash-item-edit.c: Scott Oonk's fix
+ to make the cursor visible in the register.
+
2005-08-12 Neil Williams <linux at codehelp.co.uk>
* src/backend/file/gnc-account-xml-v2.c: Cast fixes
Index: gnucash-item-edit.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/register/register-gnome/gnucash-item-edit.c,v
retrieving revision 1.1.6.11
retrieving revision 1.1.6.12
diff -Lsrc/register/register-gnome/gnucash-item-edit.c -Lsrc/register/register-gnome/gnucash-item-edit.c -u -r1.1.6.11 -r1.1.6.12
--- src/register/register-gnome/gnucash-item-edit.c
+++ src/register/register-gnome/gnucash-item-edit.c
@@ -42,7 +42,6 @@
/* FIXME GNOME2 Port
* - ButtonEvents are not delegated to GtkEntry.
- * - Cursor isn't drawn.
*/
/* The arguments we take */
@@ -288,8 +287,12 @@
info.text_rect.y + 1,
info.layout);
- gdk_draw_line (drawable, item_edit->gc, info.cursor->x, info.cursor->y,
- info.cursor->x, info.cursor->y + info.cursor->height);
+ gdk_draw_line (drawable,
+ item_edit->gc,
+ PANGO_PIXELS (info.cursor->x) + CELL_HPADDING,
+ PANGO_PIXELS (info.cursor->y),
+ PANGO_PIXELS (info.cursor->x) + CELL_HPADDING,
+ PANGO_PIXELS (info.cursor->y + info.cursor->height));
gdk_gc_set_clip_rectangle (item_edit->gc, NULL);
More information about the gnucash-changes
mailing list