[Xfce4-commits] <xfce4-panel:master> Fix warning when removing a panel with a 4.6 plugin.
Nick Schermer
noreply at xfce.org
Tue Dec 14 22:02:01 CET 2010
Updating branch refs/heads/master
to 739c225bfbc8f3e909be51760e5150797848311b (commit)
from 524e025aac4fca5d0e6a1388104a66b3a406d06b (commit)
commit 739c225bfbc8f3e909be51760e5150797848311b
Author: Nick Schermer <nick at xfce.org>
Date: Tue Dec 14 22:00:16 2010 +0100
Fix warning when removing a panel with a 4.6 plugin.
panel/panel-plugin-external-46.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/panel/panel-plugin-external-46.c b/panel/panel-plugin-external-46.c
index b5b81cd..96668ca 100644
--- a/panel/panel-plugin-external-46.c
+++ b/panel/panel-plugin-external-46.c
@@ -220,11 +220,13 @@ panel_plugin_external_46_set_properties (PanelPluginExternal *external,
panel_return_if_fail (PANEL_IS_PLUGIN_EXTERNAL_46 (external));
panel_return_if_fail (panel_atom != GDK_NONE);
- panel_return_if_fail (GDK_IS_WINDOW (GTK_WIDGET (external)->window));
panel_return_if_fail (PANEL_IS_MODULE (external->module));
- /* initial event information */
+ if (!GTK_WIDGET_REALIZED (external))
+ return;
+
event.type = GDK_CLIENT_EVENT;
+ panel_return_if_fail (GDK_IS_WINDOW (GTK_WIDGET (external)->window));
event.window = GTK_WIDGET (external)->window;
event.send_event = TRUE;
event.message_type = panel_atom;
More information about the Xfce4-commits
mailing list