-
Notifications
You must be signed in to change notification settings - Fork 80
Getting setproperty! on GtkTextTag for foreground_rgba to work #243
Comments
At the bottom of this page was the solution to what I had to do: I've got two pull requests if you want them:
Send me a message and I will send you the code. |
sgtm if you want to make a PR. I have a |
In order to prevent having two rgba types in the repo, I tried to set the color of a tag using the RGBA type you spoke about but I get errors. Is the RGBA object there used? and if so where? if not, shall I replace it with my RGBA? I understand the basic principles of writing a binding now, so if you want I can spend half a day adding a few if you like. Just let me know the ones you are eager to have soon. |
It's used, but not much. it's just provided as a way to describe the image buffer type. You should merge it with your complete definition. Agreed that the constructor is wrong. |
Made the pull request. Check the comment there before merging. |
Hey,
I'm trying to get tags with color to work... But for some reason I can't.
When using setproperty! the code complained that my GdkRGBA class could not be converted to a GType. I could not figure out how the g type system works as I am fairly new to julia. I could also not create a new setproperty! method that specifically targets what I want to do. I suspect it is fairly easy to accomplish what I am trying to do with only a little bit of help from you.
So I have two questions:
My GdkRGBA type:
My attempt at writing a setproperty! method:
Thank you for your great work and the time to have a look at my issue.
ps. I've also gotten a place_cursor! function to work for the GtkTextBuffer. If you want it let, me know and I'll create a pull request.
The text was updated successfully, but these errors were encountered: