[gnome-calendar] UI fixes, and calling read-only API of GcalManager



commit 749b1b18f0c5c980d644570e0e66e9d1bb63728f
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Thu Aug 23 09:40:53 2012 -0400

    UI fixes, and calling read-only API of GcalManager

 src/gcal-edit-dialog.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index ce7b791..6fbf670 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -100,7 +100,7 @@ gcal_edit_dialog_constructed (GObject* object)
   /* chaining up */
   G_OBJECT_CLASS (gcal_edit_dialog_parent_class)->constructed (object);
 
-  gtk_window_set_title (GTK_WINDOW (object), _("Edit Event"));
+  gtk_window_set_title (GTK_WINDOW (object), _("Event Details"));
   gtk_window_set_modal (GTK_WINDOW (object), TRUE);
   gtk_window_set_destroy_with_parent (GTK_WINDOW (object), TRUE);
   gtk_window_set_resizable (GTK_WINDOW (object), FALSE);
@@ -205,6 +205,8 @@ gcal_edit_dialog_constructed (GObject* object)
   /* Notes, description */
   child = gtk_label_new (_("Notes"));
   gtk_widget_set_halign (child, GTK_ALIGN_END);
+  gtk_widget_set_valign (child, GTK_ALIGN_START);
+  gtk_widget_set_margin_top (child, 4);
   gtk_grid_attach (GTK_GRID (grid), child, 0, 5, 1, 1);
 
   child = gtk_frame_new (NULL);
@@ -457,7 +459,10 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog,
   g_free (text);
 
   /* FIXME: this is for now, I will have to ask GcalManager */
-  gcal_edit_dialog_set_writable (dialog, FALSE);
+  gcal_edit_dialog_set_writable (
+      dialog,
+      ! gcal_manager_get_source_readonly (priv->manager,
+                                          priv->source_uid));
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]