Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/EventEdition/EventDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ public class EventDialog : Granite.Dialog {
public ECal.Component original_ecal { get; private set; }
public DateTime date_time { get; set; }

/**
* A boolean indicating whether we can edit the current event.
*/
public bool can_edit = true;

private ECal.ObjModType mod_type { get; private set; default = ECal.ObjModType.ALL; }
private EventType event_type { get; private set; }

Expand Down
1 change: 0 additions & 1 deletion src/EventEdition/GuestsPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class Maya.View.EventEdition.GuestsPanel : Gtk.Grid {
margin_start = 12;
margin_end = 12;
row_spacing = 6;
set_sensitive (parent_dialog.can_edit);
orientation = Gtk.Orientation.VERTICAL;

guest_store = new Gtk.ListStore (2, typeof (string), typeof (string));
Expand Down
3 changes: 1 addition & 2 deletions src/EventEdition/InfoPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public class Maya.View.EventEdition.InfoPanel : Gtk.Grid {
margin_start = 12;
margin_end = 12;
column_spacing = 12;
sensitive = parent_dialog.can_edit;

var from_label = new Granite.HeaderLabel (_("From:"));

Expand Down Expand Up @@ -205,7 +204,7 @@ public class Maya.View.EventEdition.InfoPanel : Gtk.Grid {
// Row: title & calendar
attach (title_label, 0, 0, 1, 1);
attach (title_entry, 0, 1, 1, 1);
if (calchooser.sources.length () > 1 && parent_dialog.can_edit) {
if (calchooser.sources.length () > 1) {
attach (calendar_label, 1, 0, 4, 1);
attach (calendar_button, 1, 1, 4, 1);
}
Expand Down
2 changes: 0 additions & 2 deletions src/EventEdition/LocationPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public class Maya.View.EventEdition.LocationPanel : Gtk.Box {
champlain_embed = new GtkChamplain.Embed ();

point = new Maya.Marker ();
point.draggable = parent_dialog.can_edit;
point.drag_finish.connect (() => {
map_selected = true;
find_location.begin (point.latitude, point.longitude);
Expand All @@ -89,7 +88,6 @@ public class Maya.View.EventEdition.LocationPanel : Gtk.Box {
margin_end = 12;
orientation = VERTICAL;
spacing = 6;
sensitive = parent_dialog.can_edit;
add (location_label);
add (location_entry);
add (frame);
Expand Down
1 change: 0 additions & 1 deletion src/EventEdition/ReminderPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public class Maya.View.EventEdition.ReminderPanel : Gtk.Box {

margin_start = margin_end = 12;
orientation = VERTICAL;
sensitive = parent_dialog.can_edit;
add (reminder_label);
add (frame);

Expand Down
1 change: 0 additions & 1 deletion src/EventEdition/RepeatPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class Maya.View.EventEdition.RepeatPanel : Gtk.Bin {

public RepeatPanel (EventDialog parent_dialog) {
this.parent_dialog = parent_dialog;
sensitive = parent_dialog.can_edit;

var reminder_label = new Granite.HeaderLabel (_("Repeat:"));

Expand Down