From: Jean-Philippe Orsini Date: Wed, 11 Jul 2012 20:23:01 +0000 (+0000) Subject: fixed hide window on startup for gnome-shell (Closes: #676361). X-Git-Tag: v0.8.0.5~314 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=ed8c8fe7b42bbe9927f317707d2754a3d2eba74e fixed hide window on startup for gnome-shell (Closes: #676361). --- diff --git a/NEWS b/NEWS index 8eb07d9..fe8e16b 100644 --- a/NEWS +++ b/NEWS @@ -47,13 +47,18 @@ ** psensor: fixed i18n support for the application menu. ** psensor: added low thresold support for alerts. ** psensor: added fan alert support. +** psensor: fixed hide window on startup for gnome-shell (Closes: + #676361). * v0.6.2.18 -** added Slovenian translation file. -** added Serbian translation file. + ** merged some chinese translation from LP. ** fixed some french translation typo. ** added degree sign for celcius (Closes LP: #1021900). +** added russian, brazilian, hungarian, serbian, slovenian, + italian, ukrainian and german translation files +** psensor: fixed hide window on startup for gnome-shell (Closes: + #676361). * v0.6.2.17 diff --git a/src/main.c b/src/main.c index 8b6330e..323be42 100644 --- a/src/main.c +++ b/src/main.c @@ -603,16 +603,16 @@ int main(int argc, char **argv) ui_appindicator_init(&ui); #endif - /* - * show the window as soon as all gtk events have been processed - * in order to ensure that the status icon is attempted to be - * drawn before. If not, there is no way to detect that it is - * visible. - */ - g_idle_add((GSourceFunc)initial_window_show, &ui); - gdk_notify_startup_complete(); + /* + * hack, did not find a cleaner solution. + * wait 2s to ensure that the status icon is attempted to be + * drawn before determining whether the main window must be + * show. + */ + g_timeout_add(2000,(GSourceFunc)initial_window_show, &ui); + /* main loop */ gtk_main();