comparison finch/libgnt/gntws.c @ 16731: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
comparison
equal deleted inserted replaced
16730:8eed567eee39 16731:3c3fc1432a01
1 #include <gmodule.h> 1 #include <gmodule.h>
2 2
3 #include "gntbox.h" 3 #include "gntbox.h"
4 #include "gntwidget.h"
5 #include "gntwindow.h"
6 #include "gntwm.h"
4 #include "gntws.h" 7 #include "gntws.h"
5 #include "gntwm.h"
6 #include "gntwidget.h"
7 8
8 static void 9 static void
9 widget_hide(gpointer data, gpointer nodes) 10 widget_hide(gpointer data, gpointer nodes)
10 { 11 {
11 GntWidget *widget = GNT_WIDGET(data); 12 GntWidget *widget = GNT_WIDGET(data);
12 GntNode *node = g_hash_table_lookup(nodes, widget); 13 GntNode *node = g_hash_table_lookup(nodes, widget);
14 if (GNT_IS_WINDOW(widget))
15 gnt_window_workspace_hiding(GNT_WINDOW(widget));
13 hide_panel(node->panel); 16 hide_panel(node->panel);
14 } 17 }
15 18
16 static void 19 static void
17 widget_show(gpointer data, gpointer nodes) 20 widget_show(gpointer data, gpointer nodes)