[pan2/testing: 256/279] improve status icon window close/open
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing: 256/279] improve status icon window close/open
- Date: Sat, 3 Dec 2011 22:42:55 +0000 (UTC)
commit cc60683da94885c392161ab0ac0072b733fc0dc2
Author: Heinrich MÃller <sphemuel stud informatik uni-erlangen de>
Date: Fri Nov 25 14:40:45 2011 +0100
improve status icon window close/open
pan/gui/pan.cc | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 3139344..7e234b7 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -300,9 +300,16 @@ namespace
void status_icon_activate (GtkStatusIcon *icon, gpointer data)
{
- gtk_widget_show(GTK_WIDGET(data));
- gtk_window_deiconify(GTK_WINDOW(data));
+// gtk_widget_show(GTK_WIDGET(data));
+// gtk_window_deiconify(GTK_WINDOW(data));
+ GtkWindow * window = GTK_WINDOW(data);
+ if(gtk_window_is_active (window))
+ gtk_widget_hide ((GtkWidget *) window);
+ else {
+ gtk_widget_hide ((GtkWidget *) window); // dirty hack
+ gtk_widget_show ((GtkWidget *) window);
+ }
}
static gboolean window_state_event (GtkWidget *widget, GdkEventWindowState *event, gpointer trayIcon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]