[gnome-calendar] Fixed GcalToolbar behavior.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Fixed GcalToolbar behavior.
- Date: Thu, 23 Aug 2012 13:45:36 +0000 (UTC)
commit b884816bda198706789cc343557996a7aa76db01
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Wed Aug 22 21:37:13 2012 -0400
Fixed GcalToolbar behavior.
src/gcal-toolbar.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-toolbar.c b/src/gcal-toolbar.c
index ab8af29..f20b886 100644
--- a/src/gcal-toolbar.c
+++ b/src/gcal-toolbar.c
@@ -473,6 +473,21 @@ gcal_toolbar_view_changed (GtkWidget *button,
priv = GCAL_TOOLBAR (user_data)->priv;
+ if (priv->active_view_button == button &&
+ ! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
+ {
+ g_signal_handlers_block_by_func (priv->active_view_button,
+ gcal_toolbar_view_changed,
+ user_data);
+ gtk_toggle_button_set_active (
+ GTK_TOGGLE_BUTTON (priv->active_view_button),
+ TRUE);
+ g_signal_handlers_unblock_by_func (priv->active_view_button,
+ gcal_toolbar_view_changed,
+ user_data);
+ return;
+ }
+
if (priv->active_view_button != NULL)
{
g_signal_handlers_block_by_func (priv->active_view_button,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]