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:
parent
89c1fedcff
commit
fbdf92bfd5
1 changed files with 4 additions and 3 deletions
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue