[gtk+/client-side-decorations: 42/50] no need for toggle logic in min_button_clicked()



commit b5d0656c5c7198d33fe7abd5a5fda8aae9d289d7
Author: Cody Russell <crussell canonical com>
Date:   Tue Jun 30 20:52:34 2009 -0500

    no need for toggle logic in min_button_clicked()

 gtk/gtkwindow.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0e4d1ca..90c0513 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1448,16 +1448,8 @@ static void
 min_button_clicked (GtkWidget *widget, gpointer data)
 {
   GtkWindow *window = (GtkWindow *)data;
-  GdkWindowState state = gdk_window_get_state (widget->window);
 
-  if (state & GDK_WINDOW_STATE_ICONIFIED)
-    {
-      gtk_window_deiconify (window);
-    }
-  else
-    {
-      gtk_window_iconify (window);
-    }
+  gtk_window_iconify (window);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]