[gnome-calendar/calendar-editor] source-dialog: pass NULL instead of an empty string to headerbar's subtitle
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-dialog: pass NULL instead of an empty string to headerbar's subtitle
- Date: Mon, 23 Feb 2015 16:57:19 +0000 (UTC)
commit 93324ab78a37aa2c59f1a5e76e1228c0f355b9cc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 23 13:57:08 2015 -0300
source-dialog: pass NULL instead of an empty string to headerbar's subtitle
src/gcal-source-dialog.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 6e017e1..f267d25 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -160,9 +160,7 @@ clear_pages (GcalSourceDialog *dialog)
GcalSourceDialogPrivate *priv = dialog->priv;
gtk_button_set_label (GTK_BUTTON (priv->select_file_button), _("Select Calendar Fileā¦"));
-
gtk_entry_set_text (GTK_ENTRY (priv->calendar_address_entry), "");
-
gtk_widget_set_sensitive (priv->add_button, FALSE);
/* details frame */
@@ -727,7 +725,7 @@ gcal_source_dialog_set_mode (GcalSourceDialog *dialog,
gtk_window_resize (GTK_WINDOW (dialog), 550, 500);
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), _("Add Calendar"));
- gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
+ gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), NULL);
clear_pages (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]