mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk gtk) #3635 "transient children of the main window aren't hidden when the main window is hidden to the notification area" -- fixed in trunk for 2.11.
This commit is contained in:
15
gtk/util.c
15
gtk/util.c
@@ -729,6 +729,21 @@ gtr_widget_get_realized( GtkWidget * w )
|
||||
void
|
||||
gtr_widget_set_visible( GtkWidget * w, gboolean b )
|
||||
{
|
||||
/* toggle the transient children, too */
|
||||
if( GTK_IS_WINDOW( w ) )
|
||||
{
|
||||
GList * l;
|
||||
GList * windows = gtk_window_list_toplevels( );
|
||||
GtkWindow * window = GTK_WINDOW( w );
|
||||
|
||||
for( l=windows; l!=NULL; l=l->next )
|
||||
if( GTK_IS_WINDOW( l->data ) )
|
||||
if( gtk_window_get_transient_for( GTK_WINDOW( l->data ) ) == window )
|
||||
gtr_widget_set_visible( GTK_WIDGET( l->data ), b );
|
||||
|
||||
g_list_free( windows );
|
||||
}
|
||||
|
||||
#if GTK_CHECK_VERSION( 2,18,0 )
|
||||
gtk_widget_set_visible( w, b );
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user