mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 08:23:19 +02:00
2009-08-07 Christian Hoff <christian_hoff@gmx.net>
* gtk/SelectionData.custom: Use gtk_selection_data_get_data instead of glue. svn path=/trunk/gtk-sharp/; revision=139571
This commit is contained in:
parent
089c820cb7
commit
05cb275ccf
@ -1,3 +1,8 @@
|
|||||||
|
2009-08-07 Christian Hoff <christian_hoff@gmx.net>
|
||||||
|
|
||||||
|
* gtk/SelectionData.custom: Use gtk_selection_data_get_data instead
|
||||||
|
of a glue func to acces the data field.
|
||||||
|
|
||||||
2009-08-05 Christian Hoff <christian_hoff@gmx.net>
|
2009-08-05 Christian Hoff <christian_hoff@gmx.net>
|
||||||
|
|
||||||
* sample/CustomcellRenderer.cs: Use GObject property registration
|
* sample/CustomcellRenderer.cs: Use GObject property registration
|
||||||
|
@ -38,12 +38,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("gtksharpglue-2")]
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
private static extern IntPtr gtksharp_gtk_selection_data_get_data_pointer (IntPtr selection_data);
|
private static extern IntPtr gtk_selection_data_get_data (IntPtr selection_data);
|
||||||
|
|
||||||
public byte[] Data {
|
public byte[] Data {
|
||||||
get {
|
get {
|
||||||
IntPtr data_ptr = gtksharp_gtk_selection_data_get_data_pointer (Handle);
|
IntPtr data_ptr = gtk_selection_data_get_data (Handle);
|
||||||
byte[] result = new byte [Length];
|
byte[] result = new byte [Length];
|
||||||
Marshal.Copy (data_ptr, result, 0, Length);
|
Marshal.Copy (data_ptr, result, 0, Length);
|
||||||
return result;
|
return result;
|
||||||
|
@ -5,7 +5,6 @@ libgtksharpglue_2_la_SOURCES = \
|
|||||||
clipboard.c \
|
clipboard.c \
|
||||||
container.c \
|
container.c \
|
||||||
object.c \
|
object.c \
|
||||||
selectiondata.c \
|
|
||||||
statusicon.c \
|
statusicon.c \
|
||||||
style.c \
|
style.c \
|
||||||
vmglueheaders.h \
|
vmglueheaders.h \
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
/* selectiondata.c : Glue to access fields of GtkSelectionData
|
|
||||||
*
|
|
||||||
* Author: Mike Kestner <mkestner@speakeasy.net>
|
|
||||||
*
|
|
||||||
* Copyright (c) 2003 Novell, Inc.
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of version 2 of the Lesser GNU General
|
|
||||||
* Public License as published by the Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this program; if not, write to the
|
|
||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
* Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <gtk/gtkselection.h>
|
|
||||||
|
|
||||||
guchar *gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data);
|
|
||||||
|
|
||||||
guchar *
|
|
||||||
gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data)
|
|
||||||
{
|
|
||||||
return data->data;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user