Mercurial > pidgin
comparison finch/libgnt/gntwm.c @ 20892:bbcc9e206c43
propagate from branch 'im.pidgin.pidgin' (head f33ba0034c79d8e37a70d664ec534356fa361608)
to branch 'im.pidgin.cpw.resiak.disconnectreason' (head b3c8182bd741b961775afed0768fbecdc47dc828)
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Fri, 12 Oct 2007 00:19:12 +0000 |
parents | 9e51721a23c7 |
children | e119edfc0fb0 b1fa7765ca4b |
comparison
equal
deleted
inserted
replaced
20823:f33ed41b6dee | 20892:bbcc9e206c43 |
---|---|
1715 } | 1715 } |
1716 | 1716 |
1717 void gnt_wm_window_close(GntWM *wm, GntWidget *widget) | 1717 void gnt_wm_window_close(GntWM *wm, GntWidget *widget) |
1718 { | 1718 { |
1719 GntWS *s; | 1719 GntWS *s; |
1720 GntNode *node; | |
1721 int pos; | 1720 int pos; |
1722 | 1721 |
1723 s = gnt_wm_widget_find_workspace(wm, widget); | 1722 s = gnt_wm_widget_find_workspace(wm, widget); |
1724 | 1723 |
1725 if ((node = g_hash_table_lookup(wm->nodes, widget)) == NULL) | 1724 if (g_hash_table_lookup(wm->nodes, widget) == NULL) |
1726 return; | 1725 return; |
1727 | 1726 |
1728 g_signal_emit(wm, signals[SIG_CLOSE_WIN], 0, widget); | 1727 g_signal_emit(wm, signals[SIG_CLOSE_WIN], 0, widget); |
1729 g_hash_table_remove(wm->nodes, widget); | 1728 g_hash_table_remove(wm->nodes, widget); |
1730 | 1729 |