Commit Graph

4082 Commits

Author SHA1 Message Date
Cameron White
216cfd941e Set the correct parent class for Gdk.SeatDefault
This fixes issues with using the Gdk.Seat value returned by  `gdk_display_get_default_seat()`.

Fixes: #131
2021-01-08 22:47:47 +01:00
lytico
a0f6a044d7
Merge pull request #208 from lytico/lytico_fix_MonoDevelop_Addin
MonoDevelop.GtkSharp.Addin.csproj: make CI happy
2021-01-08 22:05:30 +01:00
lytico
0c78c9e349 MonoDevelop.GtkSharp.Addin.csproj: adjust TargetFramework to net471 & adjust MonoDevelop.Addins to version 0.4.7 2021-01-08 21:45:28 +01:00
lytico
cb1bdfae06 GtkScrollable: GetBorder border as out param 2020-12-08 10:09:05 +01:00
zii-dmg
66d46cbacb Manually marshal UTF-8 dialog title 2020-12-08 10:07:43 +01:00
Curtis Wensley
b831ee8ca1 Don't add reference to PixbufHandle
Fixes #186
2020-12-08 10:06:26 +01:00
zii-dmg
7dbde29178 Fixed Container.ChildGetProperty
Properly marshal `gtk_container_class_find_child_property` with return type of pointer instead of struct. When marshal pointer to struct manually.
2020-10-08 15:58:20 +02:00
Harry
bc3a55f71b
Merge pull request #187 from cameronwhite/fix-pango-crash
Fix crash when accessing Pango.FontFamily.Faces
2020-08-28 17:35:50 +02:00
Cameron White
ca7ed79e77
Fix crash when accessing Pango.FontFamily.Faces
This is similar to the fix for FontFamily in #35, and adds metadata for the parent class.
Without this, I found that the conversion to GObject failed in GLib.Object.GetObject and the pointer was deleted, corrupting memory for the next call.

Fixes: #159
2020-08-27 20:38:56 -04:00
Harry
cc3d359b33
Don't sign GtkSourceSharp and fix naming 2020-08-07 13:40:50 +02:00
Harry
a761ddea85
Merge pull request #184 from GtkSharp/revert-139-sign
Revert "Sign the DLL files"
2020-08-07 13:31:04 +02:00
Harry
724df41249
Revert "Sign the DLL files" 2020-08-07 13:30:09 +02:00
Harry
92c2332bcf
Merge pull request #183 from cameronwhite/pixbuf-from-surface-lib
Fix runtime errors when calling the Gdk.Pixbuf constructors that take Gdk.Window or Cairo.Surface
2020-08-04 09:23:06 +02:00
Cameron White
90379c40c8 gdk_pixbuf_get_from_surface() is in libgdk, not libgdk_pixbuf
This needs to be explicitly specified since 3a67da38 relocated these methods into Gdk.Pixbuf, which is underneath an element that specified `library="Library.GdkPixbuf"`

This fixes runtime errors when calling this method (similar for gdk_pixbuf_get_from_window)
2020-08-03 20:28:02 -04:00
Harry
efb8335e87
[README] Add GtkSourceSharp 2020-08-03 21:41:02 +02:00
Harry
3cac71dded
Bump Gtk dependency to 3.24.20 2020-08-03 21:06:15 +02:00
harry-cpp
be0a863b50
Rename SourceView > GtkSourceSharp 2020-07-22 19:32:38 +02:00
Harry
759d62966a
Merge pull request #173 from hol430/sourceview
Added sourceview bindings
2020-07-22 19:05:40 +02:00
Harry
cb38e52242
Merge pull request #179 from hol430/filechoosernative
Fixed FileChooserNative
2020-07-22 19:04:56 +02:00
harry-cpp
0b07ea0c52
Finishing touches 2020-07-22 18:49:13 +02:00
Drew Holzworth
ce11581485
Fixed FileChooserNative (I hope)
Changed NativeDialog to inherit from GLib.Object, as it does in the C API.

FileChooserNative seems to inherit multiple base classes in the C API,
which isn't possible in C#, but this solution is to mimic multiple
inheritance via a proxy FileChooserAdapter.
2020-07-22 09:49:47 +10:00
Harry
42956bfc3e
Merge pull request #176 from cameronwhite/pixbuf-from-surface
Add Gdk.Pixbuf constructors for a source Gdk.Window or Cairo.Surface.
2020-07-21 23:04:47 +02:00
Harry
dcd05c43e4
Merge pull request #175 from cameronwhite/cairo-path-extents
Implement Cairo.Context.PathExtents()
2020-07-21 23:03:27 +02:00
Cameron White
3a67da38aa Add Gdk.Pixbuf constructors for a source Gdk.Window or Cairo.Surface.
This exposes gdk_pixbuf_get_from_window and gdk_pixbuf_get_from_surface via Gdk.Pixbuf constructors. Previously they were in a hidden GdkPixbuf_ class.

Fixes: #174
2020-07-15 22:35:34 -04:00
Cameron White
b33208f716 Implement Cairo.Context.PathExtents()
This exposes the cairo_path_extents() method, and is closely related to the existing StrokeExtents() method.
2020-07-15 16:46:14 -04:00
Drew Holzworth
e6aed8d93d
Merge pull request #1 from Blquinn/source-buffer
Update SourceView to return SourceView.Buffer
2020-07-14 11:16:55 +10:00
Benjamin Quinn
c3f768c537 Update SourceView to return SourceView.Buffer
Add syntax highlighting to sample application.
2020-07-13 21:11:17 -04:00
Drew Holzworth
6d3c0cf744
Changed sample project to show line numbers in sourceview
Just to make it a bit more obvious that the widget is a SourceView and
not a TextView.
2020-07-13 13:04:02 +10:00
Drew Holzworth
27125e5984
Hide a few of sourceview's internal datatypes 2020-07-13 12:47:45 +10:00
Drew Holzworth
5f27d9f903
Changed SourceView namespace to GtkSource. 2020-07-13 10:02:59 +10:00
Drew Holzworth
5ceb86423d
Fixed some more SourceView warnings from the code generator. 2020-07-08 09:04:28 +10:00
Drew Holzworth
43e78d943a
Fixed cake settings for sourceview
Need ref. to GioSharp.
2020-07-07 15:45:59 +10:00
Drew Holzworth
dc1410b511
Let's see if we can integrate sourceview code generation into cake 2020-07-07 12:21:51 +10:00
Drew Holzworth
7eae2a3f6d
SourceView should access GtkSharp via project reference
(rather than nuget package reference.)
2020-07-07 10:17:47 +10:00
Drew Holzworth
865bd0dac4
Changed samples project to show code in sourceview. 2020-07-07 10:08:21 +10:00
Drew Holzworth
9b52ca0713
Add Gtk.Source to Library.cs
todo - check with maintainers, is this correct.
2020-07-07 10:07:05 +10:00
Drew Holzworth
a0080977e9
Checkpoint progress : generate.sh is now working. 2020-07-07 09:43:47 +10:00
Drew Holzworth
b6b806ac80
Initial commit of sourceview files. 2020-07-02 15:09:23 +10:00
Harry
3b90cbf9f2
Merge pull request #139 from ermshiperete/sign
Sign the DLL files
2020-06-29 10:37:01 +02:00
Harry
17bd972e29
Merge pull request #164 from lytico/lytico_checknull_gtkglue
Gtk.Container & Gtk.CellRenderer: nullcheck in glue-methods
2020-05-29 09:44:49 +02:00
lytico
79db23fd80 Gtk.Container.gtksharp_container_base_forall & CellRenderer.gtksharp_cellrenderer_base_get_size: check if obj is null 2020-05-28 22:54:23 +02:00
Harry
ede043d466
Merge pull request #161 from Dadoum/patch-1
Fix Container.ForAll
2020-05-18 20:22:21 +02:00
cra0zy
884b2a473a minnor fixes 2020-05-18 20:20:54 +02:00
Dadoum
f8568ff821
Fix Container.ForAll
A SIGSEGV occurs without this change  (Invalid pointer: 0x00 fix)
2020-05-18 19:48:11 +02:00
Harry
e2c2ab1cf5
Merge pull request #158 from antianno/fix_glib_value_variant_cast
Handle NULL in GLib.Value -> GLib.Variant cast operator
2020-05-17 21:59:52 +02:00
Alex Dircksen
ed414df9f2 Handle NULL in GLib.Value -> GLib.Variant cast operator 2020-04-26 21:24:31 +02:00
Harry
40773f3c88
Merge pull request #156 from lytico/lytico_cellrenderer_getsize
Gtk.CellRenderer: implement OnGetSize
2020-04-22 20:16:45 +02:00
Harry
4cb093bc20
Merge pull request #157 from lytico/lytico_gdk_screen_signals
Gdk.Screen: SizeChanged, CompositedChanged, MonitorsChanged as signals
2020-04-22 20:16:32 +02:00
lytico
8bf40381a5 Gdk.Screen: SizeChanged, CompositedChanged, MonitorsChanged as signals 2020-04-21 22:49:49 +02:00
lytico
fb33b67d25 GtkSharp.CellRenderer.gtksharp_cellrenderer_base_get_size: adjust loop exit 2020-04-21 18:54:32 +02:00