Inherit window groups across transient parents. (#312918, Christian
2005-08-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window groups across transient parents. (#312918, Christian Persch)
This commit is contained in:
parent
278873e4b7
commit
05d3aa82d7
@ -1,5 +1,8 @@
|
|||||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
|
||||||
|
groups across transient parents. (#312918, Christian Persch)
|
||||||
|
|
||||||
* gtk/gtktreemodel.c: Some documentation fixes. (#314882,
|
* gtk/gtktreemodel.c: Some documentation fixes. (#314882,
|
||||||
Guillaume Cottenceau)
|
Guillaume Cottenceau)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
|
||||||
|
groups across transient parents. (#312918, Christian Persch)
|
||||||
|
|
||||||
* gtk/gtktreemodel.c: Some documentation fixes. (#314882,
|
* gtk/gtktreemodel.c: Some documentation fixes. (#314882,
|
||||||
Guillaume Cottenceau)
|
Guillaume Cottenceau)
|
||||||
|
|
||||||
|
@ -1843,6 +1843,10 @@ gtk_window_unset_transient_for (GtkWindow *window)
|
|||||||
{
|
{
|
||||||
if (window->transient_parent)
|
if (window->transient_parent)
|
||||||
{
|
{
|
||||||
|
if (window->transient_parent->group)
|
||||||
|
gtk_window_group_remove_window (window->transient_parent->group,
|
||||||
|
window);
|
||||||
|
|
||||||
g_signal_handlers_disconnect_by_func (window->transient_parent,
|
g_signal_handlers_disconnect_by_func (window->transient_parent,
|
||||||
gtk_window_transient_parent_realized,
|
gtk_window_transient_parent_realized,
|
||||||
window);
|
window);
|
||||||
@ -1927,6 +1931,9 @@ gtk_window_set_transient_for (GtkWindow *window,
|
|||||||
GTK_WIDGET_REALIZED (parent))
|
GTK_WIDGET_REALIZED (parent))
|
||||||
gtk_window_transient_parent_realized (GTK_WIDGET (parent),
|
gtk_window_transient_parent_realized (GTK_WIDGET (parent),
|
||||||
GTK_WIDGET (window));
|
GTK_WIDGET (window));
|
||||||
|
|
||||||
|
if (parent->group)
|
||||||
|
gtk_window_group_add_window (parent->group, window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user