-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expose gobject_sys::g_signal_stop_emission #350
Comments
cc @gkoz |
Is this a simple operation, involving copy/paste plus a little modification? If so, I could possibly do this work, though I'm definitely a Rust newbie. |
This will take a trifle of design work but should be doable without much experience, mostly you'll need to 'get' how the bindings use the |
@gkoz Were you thinking of looking into this over the next week or so? If so, I think it'd be best to leave it to you. Otherwise I can try to take a stab at it though I'm betting I'm going to be needing some hand-holding to get through it. I just don't want to go down that road if you guys would see it more of a burden than a benefit (which is understandable, we're all busy). |
@Susurrus nah, I wasn't. Take a stab at it, it's more fun when more people look into the insides of GTK ;) |
Okay, I've started digging into this a little bit, and I got gir compiling and think I'm ready to start stuff. But here's the question, where should these functions go (list here)? They're in the |
Yes, |
I don't think gir will be of help here because it doesn't generate free functions in the high-level crates. Placement in |
I'm getting pretty confused with the organization of this project, so I'd like to clarify some more here. I see that there is a separate |
|
I've started work on this in the glib library for the |
|
This should be done as of gtk-rs/glib@7ff176b, but I don't know how glib gets included in gtk, I think it's exposed through gtk as well, so I think this can be closed. |
We don't reexport |
My understanding is that functions in the
*_sys
modules should not be used in favor of them being exposed in safe Rusty APIs. I'd like to usegobject_sys::g_signal_stop_emission
and a module allowing its safe use would be useful.For context in case I should be going about this a different way, is that I'm trying to override the default signal handler for
insert-text
for a TextBuffer so that I can not render the characters in the entry field but still process them within my program.The text was updated successfully, but these errors were encountered: