diff --git a/ChangeLog b/ChangeLog index 366a6db824..b1cd6adb0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-05-06 David Hampton + * src/register/register-gnome/gnucash-header.c: + * src/gnome-utils/dialog-transfer.c: Trivial replacements for + deprecated functions. + * src/gnome-utils/gnc-file.c: * src/gnome-utils/gnc-main-window.c: Use the new qof functions to provide a dirty indication in the title bar, fixing #339026. Also diff --git a/src/gnome-utils/dialog-transfer.c b/src/gnome-utils/dialog-transfer.c index ae22ef6e69..7bafedc594 100644 --- a/src/gnome-utils/dialog-transfer.c +++ b/src/gnome-utils/dialog-transfer.c @@ -728,9 +728,6 @@ gnc_xfer_description_insert_cb(GtkEntry *entry, /* This doesn't seem to fix the selection problems, why? */ gtk_editable_select_region (GTK_EDITABLE(entry), 0, 0); -#if DRH_NEEDS_INVESTIGATION - gtk_old_editable_claim_selection (GTK_OLD_EDITABLE (entry), FALSE, GDK_CURRENT_TIME); -#endif /* Store off data for the key_press_cb or * the button_release_cb to make use of. */ @@ -766,7 +763,8 @@ common_post_quickfill_handler(guint32 time, XferDialog *xferData ) ¤t_end); if( current_pos != xferData->desc_cursor_position ) { - gtk_entry_set_position( entry, xferData->desc_cursor_position ); + gtk_editable_set_position( GTK_EDITABLE(entry), + xferData->desc_cursor_position ); did_something = TRUE; } @@ -778,9 +776,6 @@ common_post_quickfill_handler(guint32 time, XferDialog *xferData ) gtk_editable_select_region( GTK_EDITABLE(entry), xferData->desc_start_selection, xferData->desc_end_selection ); -#if DRH_NEEDS_INVESTIGATION - gtk_old_editable_claim_selection( GTK_OLD_EDITABLE(entry), TRUE, time ); -#endif did_something = TRUE; } @@ -844,10 +839,6 @@ gnc_xfer_description_key_press_cb( GtkEntry *entry, */ gtk_editable_select_region( GTK_EDITABLE(xferData->description_entry), 0, 0 ); -#if DRH_NEEDS_INVESTIGATION - gtk_old_editable_claim_selection( GTK_OLD_EDITABLE(xferData->description_entry), - FALSE, event->time ); -#endif } break; } diff --git a/src/register/register-gnome/gnucash-header.c b/src/register/register-gnome/gnucash-header.c index 35b1724519..e5ff22b6ff 100644 --- a/src/register/register-gnome/gnucash-header.c +++ b/src/register/register-gnome/gnucash-header.c @@ -256,11 +256,11 @@ gnc_header_unrealize (GnomeCanvasItem *item) } if (header->resize_cursor != NULL) - gdk_cursor_destroy (header->resize_cursor); + gdk_cursor_unref (header->resize_cursor); header->resize_cursor = NULL; if (header->normal_cursor != NULL) - gdk_cursor_destroy (header->normal_cursor); + gdk_cursor_unref (header->normal_cursor); header->normal_cursor = NULL; if (GNOME_CANVAS_ITEM_CLASS (parent_class)->unrealize)