mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Trivial replacements for deprecated functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13933 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2006-05-06 David Hampton <hampton@employees.org>
|
||||
|
||||
* 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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user