[gnome-calendar] source-dialog: show an icon on success for web sources
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: show an icon on success for web sources
- Date: Mon, 25 May 2015 16:59:18 +0000 (UTC)
commit bbca705f555072a82ac481dc22e00b57ea94d755
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Apr 20 17:24:12 2015 -0300
source-dialog: show an icon on success for web sources
src/gcal-source-dialog.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 7348d10..5cfb44f 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -1144,6 +1144,9 @@ validate_url_cb (GcalSourceDialog *dialog)
priv->remote_sources = NULL;
}
+ // Clear the entry icon
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->calendar_address_entry), GTK_ENTRY_ICON_SECONDARY,
NULL);
+
// Get the hostname and file path from the server
uri_valid = uri_get_fields (gtk_entry_get_text (GTK_ENTRY (priv->calendar_address_entry)), NULL, &host,
&path);
@@ -1427,6 +1430,10 @@ discover_sources_cb (GObject *source,
return;
}
+ // Add a success icon to the entry
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->calendar_address_entry), GTK_ENTRY_ICON_SECONDARY,
+ "emblem-ok-symbolic");
+
// Remove previous results
g_list_free_full (gtk_container_get_children (GTK_CONTAINER (priv->web_sources_listbox)),
(GDestroyNotify) gtk_widget_destroy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]