[Xfce4-commits] [panel-plugins/xfce4-datetime-plugin] 01/01: close window and deactive button on focus-out event
noreply at xfce.org
noreply at xfce.org
Thu Dec 4 22:37:20 CET 2014
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-datetime-plugin.
commit 79022ddf32f8ef0054de24284c5f372a2174765e
Author: Christian Hesse <mail at eworm.de>
Date: Mon Oct 27 17:47:19 2014 +0100
close window and deactive button on focus-out event
---
panel-plugin/datetime.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c
index 181c273..8cbb2b6 100644
--- a/panel-plugin/datetime.c
+++ b/panel-plugin/datetime.c
@@ -306,6 +306,9 @@ static GtkWidget * pop_calendar_window(t_datetime *datetime, int orientation)
g_signal_connect_swapped(G_OBJECT(window), "delete-event",
G_CALLBACK(close_calendar_window),
datetime);
+ g_signal_connect_swapped(G_OBJECT(window), "focus-out-event",
+ G_CALLBACK(close_calendar_window),
+ datetime);
gtk_widget_show_all(window);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(datetime->button), TRUE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list