[Xfce4-commits] <xfce4-panel:master> Clock plugin: removed a warning message.

Andrzej noreply at xfce.org
Fri Mar 8 01:40:01 CET 2013


Updating branch refs/heads/master
         to 29c28afcd3b2ba793cd8c5b377210570891fde89 (commit)
       from 4df52ad7e4a4ac36515e9ed366902109f447282d (commit)

commit 29c28afcd3b2ba793cd8c5b377210570891fde89
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Fri Mar 8 00:39:48 2013 +0000

    Clock plugin: removed a warning message.

 plugins/clock/clock.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index ed9f3c4..61e6c66 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -1189,7 +1189,9 @@ clock_plugin_popup_calendar (ClockPlugin *plugin,
 static void
 clock_plugin_hide_calendar (ClockPlugin *plugin)
 {
-  panel_return_if_fail (plugin->calendar_window != NULL);
+  /* calendar_window is initialized on the first call to clock_plugin_popup_calendar () */
+  if (plugin->calendar_window == NULL)
+    return;
 
   clock_plugin_pointer_ungrab (plugin, GTK_WIDGET (plugin->calendar_window));
   gtk_widget_hide (GTK_WIDGET (plugin->calendar_window));


More information about the Xfce4-commits mailing list