Vladimir 'phcoder' Serbinenko
cced9145fc
Fix gfxmenu crash.
Reported by: Thorsten Grützmacher.
* gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
timeout hook.
(circprog_set_property): Register and unregister timeout hook.
* gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
(label_destroy): Free template. and unregister hook.
(label_set_state): New function.
(label_set_property): Handle templates and hooks.
* gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
timeout hook.
(progress_bar_set_property): Register and unregister timeout hook.
* gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
* include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
* gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
(update_timeout_visit): Removed.
(update_timeouts): New function.
(redraw_timeouts): Likewise.
(grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
(grub_gfxmenu_clear_timeout): Likewise.
* include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
(grub_gfxmenu_timeout_notify): Likewise.
(grub_gfxmenu_timeout_notifications): New external variable.
(grub_gfxmenu_timeout_register): New function.
(grub_gfxmenu_timeout_unregister): Likewise.
2010-05-13 03:56:14 +02:00
..
2010-04-10 02:45:26 +02:00
2009-09-02 13:34:40 +02:00
2010-05-01 14:32:48 +02:00
2010-05-05 18:52:13 +02:00
2009-05-04 20:06:05 +00:00
2010-04-11 01:14:31 +02:00
2010-04-11 01:14:31 +02:00
2010-04-18 18:22:58 +02:00
2010-04-26 03:35:55 +02:00
2010-02-07 23:49:49 +01:00
2007-07-21 23:32:33 +00:00
2009-06-10 21:04:23 +00:00
2010-02-13 16:26:50 +01:00
2009-12-25 22:29:47 +00:00
2009-10-11 18:18:18 +02:00
2009-12-24 23:53:05 +01:00
2009-12-18 03:57:32 +01:00
2010-02-25 15:10:18 +01:00
2010-02-25 15:10:18 +01:00
2007-07-21 23:32:33 +00:00
2010-02-06 18:43:37 +01:00
2010-02-25 15:10:18 +01:00
2010-02-07 00:52:31 +01:00
2009-12-24 15:34:33 +01:00
2009-12-11 22:14:09 +01:00
2009-05-04 20:06:05 +00:00
2009-12-23 17:33:35 +01:00
2010-02-07 23:49:49 +01:00
2007-07-21 23:32:33 +00:00
2010-01-07 01:13:01 +01:00
2010-02-07 15:17:26 +01:00
2010-01-03 22:05:07 +00:00
2009-10-16 17:40:59 +02:00
2009-12-20 02:52:39 +01:00
2009-12-20 02:52:39 +01:00
2010-02-07 00:46:09 +01:00
2009-03-21 08:39:59 +00:00
2009-08-28 13:54:20 +00:00
2009-08-18 17:26:35 +00:00
2009-08-18 17:26:35 +00:00
2009-11-22 12:50:46 +00:00
2010-02-25 15:10:18 +01:00
2010-01-26 20:16:08 +00:00
2010-01-03 22:05:07 +00:00
2009-04-05 20:19:05 +00:00
2009-12-26 01:49:57 +01:00
2009-12-26 16:41:54 +01:00
2010-02-25 15:10:18 +01:00
2009-11-20 16:02:58 +01:00
2009-04-19 20:38:46 +00:00
2009-12-29 17:31:02 +01:00
2010-05-13 03:56:14 +02:00
2007-07-21 23:32:33 +00:00
2009-12-31 15:03:09 +01:00
2009-12-16 15:40:31 +01:00
2010-03-27 12:19:32 +01:00
2009-11-20 16:02:58 +01:00
2010-02-13 16:26:50 +01:00
2010-04-11 01:14:31 +02:00
2010-04-19 15:15:59 +05:30
2010-04-10 01:56:51 +02:00
2010-02-09 15:32:42 +01:00
2009-04-27 16:48:58 +00:00
2009-06-10 21:04:23 +00:00
2009-09-02 02:52:10 +02:00
2009-09-02 02:52:10 +02:00
2009-06-10 21:04:23 +00:00
2009-12-26 16:39:16 +01:00
2009-12-29 23:01:12 +01:00
2010-04-11 21:24:21 +02:00
2010-03-26 17:06:36 +01:00
2010-02-06 18:43:37 +01:00
2007-07-25 00:44:03 +00:00
2010-05-01 14:06:53 +02:00
2009-06-10 21:04:23 +00:00
2010-04-09 21:07:24 +02:00
2010-01-03 22:05:07 +00:00
2009-12-24 00:37:11 +01:00
2010-03-26 15:44:13 +01:00
2009-06-10 21:04:23 +00:00
2010-02-07 04:23:44 +01:00
2009-10-14 18:17:18 +02:00
2009-07-31 14:25:19 +00:00
2009-12-24 00:37:11 +01:00
2010-03-21 11:03:41 +05:30
2008-08-27 15:05:00 +00:00
2008-08-27 15:05:00 +00:00
2010-02-07 15:17:26 +01:00
2009-11-23 21:15:44 +01:00
2009-10-10 20:59:18 +02:00
2007-07-21 23:32:33 +00:00
2010-01-03 22:05:07 +00:00
2010-01-18 19:43:39 +00:00
2009-12-24 23:20:43 +01:00
2010-02-09 15:32:42 +01:00
2010-02-07 02:47:18 +01:00
2007-07-21 23:32:33 +00:00
2009-11-14 23:11:55 +01:00
2010-02-13 15:40:13 +01:00
2009-11-09 18:43:53 +01:00
2009-06-10 21:04:23 +00:00
2009-02-08 17:58:32 +00:00
2009-11-14 17:00:39 +01:00
2010-05-09 11:00:21 +02:00
2009-12-25 21:32:46 +01:00