Kaydet (Commit) a8855d2e authored tarafından Enrico Tröger's avatar Enrico Tröger

Iconify the main window on Windows before de-iconifying it when opening files…

Iconify the main window on Windows before de-iconifying it when opening files remotely to ensure the main window pops up.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2573 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 340dccfb
......@@ -6,6 +6,9 @@
Use Python styles for embedded Python code.
* src/highlighting.c:
Remove hotspot code as it was never really used.
* src/socket.c:
Iconify the main window on Windows before de-iconifying it when
opening files remotely to ensure the main window pops up.
2008-05-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -510,10 +510,14 @@ gboolean socket_lock_input_cb(GIOChannel *source, GIOCondition condition, gpoint
}
document_colourise_new();
gtk_window_deiconify(GTK_WINDOW(app->window));
#ifdef G_OS_WIN32
/* we need to bring the main window up with gtk_window_present() but this is not
* enough, instead we need to iconify it so that gtk_window_deiconify() will
* bring it in the foreground */
gtk_window_present(GTK_WINDOW(app->window));
gtk_window_iconify(GTK_WINDOW(app->window));
#endif
gtk_window_deiconify(GTK_WINDOW(app->window));
}
else if (strncmp(buf, "line", 4) == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment