GtkWidget *dialog = gtk_dialog_new_with_buttons (My diaolg, app_main_window,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
NULL);
I want to display the above dialog non-modally (after adding its
Secondly, how do I obtain a pointer to the dialog's 'Cancel' button so that I
can connect a signal handler to it? I looked for functions like
gtk_dialog_get_child() or gtk_window_get_child_with_id() or something similar
but I couldn't find anything.
You could add the cancel button after
On 4 May 2011, at 12:30, Emmanuel Thomas-Maurin wrote:
You could add the cancel button after creating the dialog with
gtk-dialog-add-button:
http://developer.gnome.org/gtk/stable/GtkDialog.html#gtk-dialog-add-button
Yeah, I guess I'll have to do it that way. Because GTK+ widgets are to
how do I obtain a pointer to the dialog's 'Cancel' button so that I can
connect a signal handler to it?
I think that you can also connect to the response signal of the dialog and
check the response ID.
I looked for functions like gtk_dialog_get_child() or
gtk_window_get_child_with_id() or
Hello,
Have ever reported the memory leak of gtk_widget_destroy?
I facing the memory leak after gtk_widget_destroy (my-gtk-window).
Memory leak occurs, thogh my window does not contain any widget.
my codes is as below:
=
#include
On 4 May 2011, at 14:20, A. da Mek wrote:
I think that you can also connect to the response signal of the dialog and
check the response ID.
Good call..! That worked just fine. Thanks for the tip.
John
___
gtk-app-devel-list mailing list
On Wed, 4 May 2011, jessonel wrote:
Have ever reported the memory leak of gtk_widget_destroy?
Yes, hundreds of people. Have you heard of a useful tool called
google? 99.9 percent of such leak reports are bogus, reflecting
lack of knowledge of how memory management works in the GTK stack.
Allin
GLib 2.29.4 is now available for download at:
ftp://ftp.gtk.org/pub/glib/2.29/
http://download.gnome.org/sources/glib/2.29/
23700752b4eadf753a5f41293fa9d05cc5be7b64bfbb3f54692a3a06e39e8624
glib-2.29.4.tar.gz
20e8e62b82f24107144661bb5e462980866ed78a9d8261db8d2b1638224aadcd
glib-2.29.4.tar.bz2