~reviczky/+junk/gtksharp

« back to all changes in this revision

Viewing changes to gtk/Clipboard.cs

  • Committer: Adam Reviczky
  • Date: 2014-07-08 22:53:28 UTC
  • Revision ID: adam.reviczky@kclalumni.net-20140708225328-kt03dwtjwif21k3r
July 05, 2014 (7ea0c4afaf)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
        public partial class Clipboard {
27
27
 
28
 
                [DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
 
28
                [DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
29
29
                static extern bool gtk_clipboard_set_with_data(IntPtr raw, TargetEntry[] targets, int n_targets, GtkSharp.ClipboardGetFuncNative get_func, GtkSharp.ClipboardClearFuncNative clear_func, IntPtr data);
30
30
 
31
 
                [DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
 
31
                [DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
32
32
                static extern bool gtk_clipboard_set_with_owner(IntPtr raw, TargetEntry[] targets, int n_targets, GtkSharp.ClipboardGetFuncNative get_func, GtkSharp.ClipboardClearFuncNative clear_func, IntPtr owner);
33
33
 
34
34
                void ClearProxy (Clipboard clipboard)
73
73
                        Text = text;
74
74
                }
75
75
 
76
 
                [DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
 
76
                [DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
77
77
                static extern IntPtr gtk_clipboard_wait_for_rich_text (IntPtr raw, IntPtr buffer, out IntPtr format, out UIntPtr length);
78
78
 
79
79
                public byte[] WaitForRichText(Gtk.TextBuffer buffer, out Gdk.Atom format) 
115
115
                        }
116
116
                }
117
117
 
118
 
                [DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
 
118
                [DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
119
119
                static extern void gtk_clipboard_request_rich_text(IntPtr raw, IntPtr buffer, RichTextReceivedFuncNative cb, IntPtr user_data);
120
120
 
121
121
                public void RequestRichText (Gtk.TextBuffer buffer, RichTextReceivedFunc cb)