mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
(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:
parent
f8da0639b7
commit
47bbd783d5
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user