source-dialog: set the mode instead of the raw stack page
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
f70702a885
commit
34fb3b2bf9
@@ -236,8 +236,7 @@ back_button_clicked (GtkButton *button,
|
|||||||
g_object_unref (priv->source);
|
g_object_unref (priv->source);
|
||||||
priv->source = NULL;
|
priv->source = NULL;
|
||||||
|
|
||||||
gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "main");
|
gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (user_data), GCAL_SOURCE_DIALOG_MODE_NORMAL);
|
||||||
gtk_widget_hide (GTK_WIDGET (button));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -634,7 +633,7 @@ calendar_listbox_row_activated (GtkListBox *box,
|
|||||||
ESource *source = g_object_get_data (G_OBJECT (row), "source");
|
ESource *source = g_object_get_data (G_OBJECT (row), "source");
|
||||||
|
|
||||||
gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (user_data), source);
|
gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (user_data), source);
|
||||||
gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "edit");
|
gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (user_data), GCAL_SOURCE_DIALOG_MODE_EDIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user