(GetPathAtPos): use GLib.Object.GetObject so that we don't create

new TreeViewColumn object duplicates

svn path=/trunk/gtk-sharp/; revision=27858
This commit is contained in:
Radek Doulik 2004-05-22 08:58:21 +00:00
parent f8da0639b7
commit 47bbd783d5
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
* gtk/TreeView.custom(GetPathAtPos): change Gtk.TreeViewColumn
column parameter to out[put] as gtk_tree_view_get_path_at_pos
returns column address to column parameter
(GetPathAtPos): use GLib.Object.GetObject so that we don't create
new TreeViewColumn object duplicates
2004-05-19 Mike Kestner <mkestner@ximian.com>

View File

@ -83,7 +83,7 @@
IntPtr columnHandle;
bool raw_ret = gtk_tree_view_get_path_at_pos (Handle, x, y, out pathHandle, out columnHandle, out cell_x, out cell_y);
if (raw_ret) {
column = new TreeViewColumn (columnHandle);
column = (Gtk.TreeViewColumn) GLib.Object.GetObject (columnHandle, false);
path = new TreePath (pathHandle);
} else {
path = null;
@ -114,7 +114,7 @@
bool raw_ret = gtk_tree_view_get_path_at_pos_intptr (Handle, x, y, out pathHandle, out columnHandle, IntPtr.Zero, IntPtr.Zero);
if (raw_ret) {
path = new TreePath (pathHandle);
column = new TreeViewColumn (columnHandle);
column = (Gtk.TreeViewColumn) GLib.Object.GetObject (columnHandle, false);
} else {
path = null;
column = null;