-
Notifications
You must be signed in to change notification settings - Fork 80
Add destroyall #31
base: master
Are you sure you want to change the base?
Add destroyall #31
Conversation
This seems useful. Do we want to just use the existing Gtk builtin though: gtk_window_list_toplevels |
Good idea. So many functions to learn... I should mention: one trick Matlab has is the ability to set the However, my sense is that such functionality, if desired, should be implemented at a higher level (e.g., plotting packages). So unless I hear otherwise, I'll rework this to use |
I think the need to have "hidden" windows is a function of their plotting interface developing from a model with a single Yeah, I'm pretty much learning the scope of Gtk's functionality along with you here -- I've just read through the list of functions more times trying to build the constructors. |
This seems a little harder than I expected. Here's the naive version:
Testing:
with result
Once the Julia reference to the first I see several options:
Of those four, the first two seem distasteful. I may not be understanding the structure here well enough to see an even better solution right under my nose. |
This is some nice clean example code: http://src.chromium.org/chrome/trunk/src/chrome/browser/lifetime/application_lifetime_gtk.cc
It might be easiest to just write this using ccalls. Strangely, your code seems to work for me.
You could declare the type of the GSList to be Void so that it returned Ptr{Void} objects
This is preferable, and needs to be done eventually. |
Hmm, anyone know a way to get the Is this part of what's provided by #27? I confess I haven't had the time to learn all the background needed to follow that work. |
Already in master there is
this is inside GI.jl (gobject-introspection) now, but doesn't actually depend on the gobject-introspection library, only on libgobject. |
Thanks, that's very helpful. So presumably one could go I guess the next question is how to build the dictionary. The only workable approach I see is to compile the dict as instances are constructed, i.e., change the
|
Well if one does |
Gotcha. I can verify
does indeed do what one hopes. |
( |
I'm not sure why you are calling |
Simply because it was recommended. I suppose that when one builds an instance, it registers that type? So does my solution to add
to Then a "safe" conversion method might be
The |
no. but I think bfredl is preparing a pull request now (related to #27) which will include the elements needed to support this |
This is useful in interactive settings where you pop open a large number of windows.