Revision: 613 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=613&view=rev Author: eht16 Date: 2009-04-29 18:24:16 +0000 (Wed, 29 Apr 2009)
Log Message: ----------- Simplify the show/hide code so it also works for Windows.
Modified Paths: -------------- trunk/addons/src/ao_systray.c
Modified: trunk/addons/src/ao_systray.c =================================================================== --- trunk/addons/src/ao_systray.c 2009-04-29 18:07:43 UTC (rev 612) +++ trunk/addons/src/ao_systray.c 2009-04-29 18:24:16 UTC (rev 613) @@ -122,21 +122,9 @@ static void icon_activate_cb(GtkStatusIcon *status_icon, gpointer data) { if (gtk_window_is_active(GTK_WINDOW(geany->main_widgets->window))) - { - gtk_window_iconify(GTK_WINDOW(geany->main_widgets->window)); - gtk_window_set_skip_taskbar_hint(GTK_WINDOW(geany->main_widgets->window), TRUE); - gtk_window_set_skip_pager_hint(GTK_WINDOW(geany->main_widgets->window), TRUE); - } + gtk_widget_hide(geany->main_widgets->window); else - { gtk_window_present(GTK_WINDOW(geany->main_widgets->window)); - gtk_window_set_skip_taskbar_hint(GTK_WINDOW(geany->main_widgets->window), FALSE); - gtk_window_set_skip_pager_hint(GTK_WINDOW(geany->main_widgets->window), FALSE); -#ifdef G_OS_WIN32 - // ensure that the window is displayed at the top - gdk_window_show(geany->main_widgets->window->window); -#endif - } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org