[Glade-users] GtkHelpDialog and close....
Roland Roberts
roland at astrofoto.org
Fri Aug 15 21:55:38 EDT 2008
I've seen this listed as a bug elsewhere and seen it listed as
not-a-bug. But it's annoying.
The "Credits" and "License" buttons just work without having to connect
any signals. But the close button does nothing. And when building with
glade, the internal action area does not let me access the close button
to connect a signal. Instead, what I find from searching the web is
that I have to do something like this in my callback:
void
on_menu_help_about_activate_cb(GtkObject *object, gpointer user_data)
{
GtkWidget *window = GTK_ABOUT_DIALOG(gtk_builder_get_object(builder,
"help_about_dialog"));
gtk_about_dialog_set_version(window, VERSION);
/* gtk_widget_show(window); */
gtk_dialog_run(window);
gtk_widget_hide(window);
}
But the gtk_dialog_run effectively makes the dialog modal.
Is there a way around this?
roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland at rlenter.com 6818 Madeline Court
roland at astrofoto.org Brooklyn, NY 11220
More information about the Glade-users
mailing list