diff -r 2de25c9cf9c1 -r eab3d9b215b0 pidgin/gtkutils.h --- a/pidgin/gtkutils.h Tue Jul 24 18:08:23 2007 +0000 +++ b/pidgin/gtkutils.h Tue Jul 24 19:54:26 2007 +0000 @@ -65,6 +65,24 @@ #endif /* _WIN32 */ /** + * Designate new_toplevel as the preferred window for ensuring proper + * transience relationships for subsequent dialogs. + * + * @param new_toplevel The GtkWindow to be used for transience. + */ +void pidgin_set_toplevel(GtkWindow *new_toplevel); + +/** + * Retrieve the currently preferred toplevel window (set by a previous + * call top pidgin_set_toplevel()) and *not* since destroyed. + * + * @return The GtkWindow most recently given to pidgin_set_toplevel(), or #NULL. + * #NULL will be returned either if no toplevel has been set, or if the + * most recently set toplevel has since been destroyed. + */ +GtkWindow *pidgin_get_toplevel(); + +/** * Sets up a gtkimhtml widget, loads it with smileys, and sets the * default signal handlers. *