diff finch/libgnt/gntws.c @ 17707:3c3fc1432a01

Let windows know when the workspace they are in is being hidden/shown
author Richard Nelson <wabz@pidgin.im>
date Sat, 12 May 2007 23:58:11 +0000
parents 596c970076df
children 34e011c8ed2b
line wrap: on
line diff
--- a/finch/libgnt/gntws.c	Mon Apr 30 12:02:15 2007 +0000
+++ b/finch/libgnt/gntws.c	Sat May 12 23:58:11 2007 +0000
@@ -1,15 +1,18 @@
 #include <gmodule.h>
 
 #include "gntbox.h"
-#include "gntws.h"
+#include "gntwidget.h"
+#include "gntwindow.h"
 #include "gntwm.h"
-#include "gntwidget.h"
+#include "gntws.h"
 
 static void
 widget_hide(gpointer data, gpointer nodes)
 {
 	GntWidget *widget = GNT_WIDGET(data);
 	GntNode *node = g_hash_table_lookup(nodes, widget);
+	if (GNT_IS_WINDOW(widget))
+		gnt_window_workspace_hiding(GNT_WINDOW(widget));
 	hide_panel(node->panel);
 }