[gnome-calendar] source-dialog: better name the modes
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: better name the modes
- Date: Mon, 25 May 2015 16:54:14 +0000 (UTC)
commit 102b5431fd90466840a5935cec5b264eecba904a
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 4f644ee..5799d43 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -894,7 +894,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]