[gnome-calendar/calendar-editor] source-dialog: correctly check the current stack page



commit 470af9440209aee5eeb7c22489fd24851333d2ff
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Apr 8 16:12:02 2015 -0300

    source-dialog: correctly check the current stack page

 src/gcal-source-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 3080130..a439bb6 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -227,7 +227,7 @@ back_button_clicked (GtkButton *button,
    * go back to the GOA calendar selection page.
    */
 
-  if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (priv->stack)), "edit"))
+  if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (priv->stack)), "edit") == 0)
     {
       gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "main");
       gtk_widget_hide (GTK_WIDGET (button));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]