diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-11-18 00:53:59 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-11-18 00:53:59 +0800 |
commit | a24713d8b320d0446d30ca5ed69a87cb788ff281 (patch) | |
tree | 0f653ab5e0f2a5bc22c8f35e76355e7c8fe3b7e4 /calendar/gui | |
parent | 0a730e687445f6710704a7e8d28b6cde327d281b (diff) | |
download | gsoc2013-evolution-a24713d8b320d0446d30ca5ed69a87cb788ff281.tar.gz gsoc2013-evolution-a24713d8b320d0446d30ca5ed69a87cb788ff281.tar.zst gsoc2013-evolution-a24713d8b320d0446d30ca5ed69a87cb788ff281.zip |
Doh. Fixed stupid bug where the classification buttons were not being set
1998-11-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_classification_widgets): Doh. Fixed stupid bug
where the classification buttons were not being set correctly.
(ee_store_general_values_to_ical): Take into account the fact that
radio group lists are stored in reverse order of insertion.
* gncal-todo.c (gncal_todo_init): Use a scrolled window to put the
clist into.
svn path=/trunk/; revision=475
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/eventedit.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c index a8a972158f..ed9f03f850 100644 --- a/calendar/gui/eventedit.c +++ b/calendar/gui/eventedit.c @@ -404,11 +404,11 @@ ee_classification_widgets (EventEditor *ee) gtk_box_pack_start (GTK_BOX (hbox), rpriv, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), rconf, FALSE, FALSE, 0); - if (strcmp (ee->ical->class, class_names[0])) + if (strcmp (ee->ical->class, class_names[0]) == 0) gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (rpub), TRUE); - else if (strcmp (ee->ical->class, class_names[1])) + else if (strcmp (ee->ical->class, class_names[1]) == 0) gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (rpriv), TRUE); - else if (strcmp (ee->ical->class, class_names[2])) + else if (strcmp (ee->ical->class, class_names[2]) == 0) gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (rconf), TRUE); ee->general_radios = rpub; @@ -478,11 +478,12 @@ ee_store_general_values_to_ical (EventEditor *ee) ee_store_alarm (&ical->palarm, ALARM_PROGRAM); ee_store_alarm (&ical->malarm, ALARM_MAIL); - for (idx = 0; list; list = list->next) { + for (idx = 2; list; list = list->next) { if (GTK_TOGGLE_BUTTON (list->data)->active) break; - idx++; + idx--; /* The group is stored in reverse order of insertion */ } + g_free (ical->class); ical->class = g_strdup (class_names [idx]); } |