[gnome-calendar/calendar-editor] source-dialog: better name the modes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-dialog: better name the modes
- Date: Tue, 7 Apr 2015 19:23:52 +0000 (UTC)
commit 2b63672261d38a15883e13b345cd922d7a45e497
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Apr 7 16:21:29 2015 -0300
source-dialog: better name the modes
Since we're not creating a calendar
as the default state, rename the mode
to NORMAL as it better describes the
dialog state.
src/gcal-source-dialog.c | 4 ++--
src/gcal-source-dialog.h | 2 +-
src/gcal-window.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index d951aeb..f80397e 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -341,7 +341,7 @@ response_signal (GtkDialog *dialog,
}
/* commit the new source */
- if (priv->mode == GCAL_SOURCE_DIALOG_MODE_CREATE && response_id == GTK_RESPONSE_APPLY)
+ if (priv->mode == GCAL_SOURCE_DIALOG_MODE_NORMAL && response_id == GTK_RESPONSE_APPLY)
{
ESource *current_source, *other_source;
gint page;
@@ -361,7 +361,7 @@ response_signal (GtkDialog *dialog,
}
/* Destroy the source when the operation is cancelled */
- if (priv->mode == GCAL_SOURCE_DIALOG_MODE_CREATE && response_id == GTK_RESPONSE_CANCEL)
+ if (priv->mode == GCAL_SOURCE_DIALOG_MODE_NORMAL && response_id == GTK_RESPONSE_CANCEL)
{
if (priv->local_source != NULL)
g_clear_object (&(priv->local_source));
diff --git a/src/gcal-source-dialog.h b/src/gcal-source-dialog.h
index b40bb3f..8dda5cd 100644
--- a/src/gcal-source-dialog.h
+++ b/src/gcal-source-dialog.h
@@ -42,7 +42,7 @@ struct _GcalSourceDialogClass
typedef enum
{
GCAL_SOURCE_DIALOG_MODE_EDIT,
- GCAL_SOURCE_DIALOG_MODE_CREATE
+ GCAL_SOURCE_DIALOG_MODE_NORMAL
} GcalSourceDialogMode;
GcalSourceDialog* gcal_source_dialog_new (void);
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 4e13097..e3810fe 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -859,7 +859,7 @@ show_source_dialog (GtkButton *button,
{
GcalWindowPrivate *priv = gcal_window_get_instance_private (GCAL_WINDOW (user_data));
- gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_CREATE);
+ gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_NORMAL);
gtk_widget_hide (priv->calendar_popover);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]