1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(gtk) #826: gtk client's "--minimized" command-line argument doesn't work

This commit is contained in:
Charles Kerr 2008-04-11 14:36:29 +00:00
parent 89c1fedcff
commit fbdf92bfd5

View file

@ -407,12 +407,13 @@ appsetup( TrWindow * wind, GSList * torrentFiles,
cbdata->timer = g_timeout_add( UPDATE_INTERVAL, updatemodel, cbdata );
updatemodel( cbdata );
/* show the window */
if( minimized ) {
/* either show the window or iconify it */
if( !minimized )
gtk_widget_show( GTK_WIDGET( wind ) );
else {
gtk_window_iconify( wind );
gtk_window_set_skip_taskbar_hint( cbdata->wind, cbdata->icon != NULL );
}
gtk_widget_show( GTK_WIDGET( wind ) );
}