From fbdf92bfd58e3bbfd51eb8b8fa49f5daf5ae6e6c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 11 Apr 2008 14:36:29 +0000 Subject: [PATCH] (gtk) #826: gtk client's "--minimized" command-line argument doesn't work --- gtk/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index 24721573e..cce61d774 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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 ) ); }