aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* Insert the summary text here. (child_focus_in): No need to raise theFederico Mena Quintero1999-01-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 1999-01-28 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (child_new): Insert the summary text here. (child_focus_in): No need to raise the window, since we have Spiffo(tm) layout code. Boy, this is old code. (gncal_full_day_focus_child): Now that GtkText works better, we can avoid synthesizing a click which was causing grief, anyway. (child_button_press): Grab the focus before popping up the menu. * layout.c (find_index): Added a sanity check. * gncal-full-day.c (child_destroy): Unmap and unrealize the child before unparenting/destroying it. (child_unrealize): Unrealize the widget. What was I thinking? (child_new): Save the focus_out_event signal connection id in Child structure (in a new field). (child_destroy): Disconnect from the focus_out_event signal, since we don't want to get such an event when the widget is destroyed. (gncal_full_day_destroy): Destroy the children properly; it was leaking memory. svn path=/trunk/; revision=633
* Do some cleanup; now we pass a struct with the layout algorithm's stateFederico Mena Quintero1998-10-091-69/+86
| | | | | | | | | | | | | | | | | | | | | 1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx> * layout.c: Do some cleanup; now we pass a struct with the layout algorithm's state instead of passing a trillion parameters around. * gncal-full-day.c (layout_children): Use the new generic layout engine. (child_compare): Sort keys are start time then end time, not just start time. This produces somewhat nicer results for the layout algorithm. The new layout code uses a partition of the time range occupied by the events, rather than using a fixed time granularity. This is better since the different parts of the program that use the layout module will have different semantics regarding snapping the event bounds to a fixed "time grid". svn path=/trunk/; revision=434
* Doh, add the files - FedericoArturo Espinosa1998-10-081-0/+268
svn path=/trunk/; revision=433