[gnome-calendar] edit-dialog: remove unused spin_button_set_value



commit 81ce012ed7d1e0f841ad9017a541a8a71b04a9c9
Author: Yash Singh <yashdev10p gmail com>
Date:   Sat Jul 15 00:14:23 2017 +0530

    edit-dialog: remove unused spin_button_set_value
    
    The number_of_occurrences was forcefully set to 0,
    due to spin_button_set_value being placed incorrectly.
    When a recurring event with limit_type as
    GCAL_RECURRENCE_COUNT, having some 'x' number of
    recurrences was opened in the edit-dialog, it showed
    '0' as number_of_occurrences in place of 'x', which
    is incorrect.
    
    This patch removes this unnecessary line of code
    and leads to correct assignment of number_of_occurrences.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782755

 src/gcal-edit-dialog.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 551cdf2..b198d51 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -1381,8 +1381,6 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog,
   /* recurrence_changed */
   dialog->recurrence_changed = FALSE;
 
-  gtk_adjustment_set_value (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON 
(dialog->number_of_occurrences_spin)), 0);
-
   /* location */
   gtk_entry_set_text (GTK_ENTRY (dialog->location_entry), gcal_event_get_location (event));
 


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