Re: Using By-Value Compound Getters (Re: gtk_widget_get_allocation)
I think that using pass-by-value struct will bring more headache for language bindings developers, because this complicates ABI and not every language's foreign function interface supports passing structs by value. (I think that passing structs by value is not part of C language, but of C++ (or am I wrong?), so it is problematic to support) I would support having both kinds of accessors: "simple" ones (option "a") and convenient for C (option "b"). Just the same as with other kinds of functions, e.g., g_object_get and g_object_get_property. One part of interface for convenience of C programming, one part for convenience of other languages. signature.asc Description: This is a digitally signed message part. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: [CRM114spam]: expose event following button press/release event
On Понедельник 18 мая 2009 16:12:26 Dr. David Alan Gilbert wrote: > * Tony Wang (wangtao@gmail.com) wrote: > > Hi Guys, > > Why there is always one expose-event after > > the button-press-event(and button-release-event)? that means my app > > redraw itself twice for one button event, which made the app UI flickers, > > any clues for settling the problem? > > Because the button is highlighted when you press it and returned to normal > when you release. Is it just the button that's getting the redraw > or something else? Button-*-event signal is raised not when pressing and releasing GtkButton (the widget on the screen), but when pressing and releasing button of a mouse. So, e.g., mouse clicks on form => form redrawn twice. signature.asc Description: This is a digitally signed message part. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Error converting a pipe (Handler) to fd on vs 2003 to use with g_io_channel_win32_new_fd
On Friday 07 August 2009 19:35:49 puzzlecracker wrote: > The goal is to notify main application that something occurred in > thread thread. In my case, I can't use gtk in multi-threaded way > (calling functions of main thread from spawned one), so I am trying to > do it via pipes. I already have a working solution on linux, and now want > to make it work cross-platforms. It is possible to call g_idle_add to notify main loop that it should call your function. This method will thread-safe. I think that this is much easier than pipes. Or you can call gdk_threads_enter/gdk_threads_leave and call gtk functions normally. > > I also saw that it could be a visual studio issue in this thread > http://mail.nl.linux.org/xchat-discuss/2004-03/msg00177.html > > Any suggestions? signature.asc Description: This is a digitally signed message part. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list