Commit graph

42 commits

Author SHA1 Message Date
Vladimir 'phcoder' Serbinenko
4037210375 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
too long captions.
	(list_get_minimal_size): Take selection box into account.
2010-07-02 18:28:54 +02:00
Vladimir 'phcoder' Serbinenko
ad603f61a5 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
Removed drawing_scrollbar argument. All users updated
	Fixes #29792.
	Reported by Jo Shields
2010-05-23 13:59:50 +02:00
Vladimir 'phcoder' Serbinenko
3ecb080a33 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
buffer since gfxterm handles double repaint.
2010-05-23 13:43:38 +02:00
Vladimir 'phcoder' Serbinenko
5f2316c1fe * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
* term/gfxterm.c (real_scroll): Likewise.
2010-05-23 13:42:16 +02:00
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
Robert Millan
d116e0d8d1 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
Support relative image path in theme file.

	* gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
	(image_set_property): Handle theme_dir and relative path.
2010-03-04 23:16:34 +01:00
Vladimir 'phcoder' Serbinenko
d9f31a41ca 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
Remove any reference to non-free fonts.

	* commands/videotest.c (grub_cmd_videotest): Use unifont by default.
	* docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
	uses non-free components.
	* font/font.c (grub_font_get_name): Remove example name.
	* gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
	* gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
	* gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
	* gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2010-02-16 13:23:08 +01:00
Vladimir 'phcoder' Serbinenko
1f534b6908 Merge mainline into gfxmenu 2010-02-03 01:24:07 +01:00
Vladimir 'phcoder' Serbinenko
2810a4ef1c Fix scrollbar height 2010-01-09 11:48:38 +01:00
Vladimir 'phcoder' Serbinenko
b5c72e3b0f Fix list scrollbar position miscalculation 2010-01-08 19:15:49 +01:00
Vladimir 'phcoder' Serbinenko
34d2c9a10f Fix compilation error 2010-01-06 22:19:28 +01:00
Vladimir 'phcoder' Serbinenko
2ab4515528 Push error before calling grub_gfxterm_fullscreen 2010-01-06 10:50:50 +01:00
Vladimir 'phcoder' Serbinenko
4d253049d5 Fix non-clearing of timeout. Template support for timeout text. 2010-01-06 01:42:21 +01:00
Vladimir 'phcoder' Serbinenko
ee6aa06a4d Merge gfxmenu into gfxmenu+multiterm 2010-01-05 23:50:40 +01:00
Vladimir 'phcoder' Serbinenko
ea51afb099 Use pixmapbar only when images available 2010-01-05 23:49:40 +01:00
Vladimir 'phcoder' Serbinenko
e917601a29 Merge gfxmenu into gfxmenu+multiterm 2010-01-05 23:24:16 +01:00
Vladimir 'phcoder' Serbinenko
b9d28aa05f Fix missing viewport in gui_list 2010-01-05 23:22:02 +01:00
Vladimir 'phcoder' Serbinenko
829e1bbe10 Merge gfxmenu into gfxmenu+multiterm 2010-01-05 21:07:55 +01:00
Vladimir 'phcoder' Serbinenko
be42af3884 Compute list size automatically 2010-01-05 21:07:06 +01:00
Vladimir 'phcoder' Serbinenko
6812d2e72d Fix non-skipping of percent sign 2010-01-05 21:06:27 +01:00
Vladimir 'phcoder' Serbinenko
27708b75ca Merge gfxmenu into gfxmenu+multiterm 2010-01-05 19:38:50 +01:00
Vladimir 'phcoder' Serbinenko
b9da170080 Preliminary support for mixed percent and linear declarations 2010-01-05 19:38:11 +01:00
Vladimir 'phcoder' Serbinenko
7a68c375f3 Fix warnings 2009-12-29 17:57:20 +01:00
Vladimir 'phcoder' Serbinenko
5fab62c06e merge gfxmenu into gfxmenu+mulitterm 2009-12-29 17:33:35 +01:00
Vladimir 'phcoder' Serbinenko
9a17588459 Initial support for scalable gfxmenu 2009-12-29 17:31:02 +01:00
Vladimir 'phcoder' Serbinenko
3e4cb64ca8 Merge gfxmenu into gfxmenu+multiterm 2009-12-27 22:30:00 +01:00
Vladimir 'phcoder' Serbinenko
a2b4c09b1c Don't destroy NULL view 2009-12-27 22:24:46 +01:00
Vladimir 'phcoder' Serbinenko
4cc972be91 Clarify FIXME comments. 2009-12-26 16:58:01 +01:00
Vladimir 'phcoder' Serbinenko
d3ee2d201e Various fixes to make gfxmenu work smoothly in multioutput environment 2009-12-26 16:41:54 +01:00
Vladimir 'phcoder' Serbinenko
9b1209ba15 Cache loaded theme 2009-12-26 02:37:01 +01:00
Vladimir 'phcoder' Serbinenko
bee140683a Initial effort for gfxmenu on multiterm branch 2009-12-26 01:49:57 +01:00
Vladimir 'phcoder' Serbinenko
3d79d70fe4 Don't use UNUSED 2009-12-20 01:51:38 +01:00
Vladimir 'phcoder' Serbinenko
f505738643 Fix warning 2009-12-02 14:42:28 +01:00
Vladimir 'phcoder' Serbinenko
2fac00e668 Fixed a warning 2009-11-27 10:20:24 +01:00
Vladimir 'phcoder' Serbinenko
947fa16c8b Important speedup by not redrawing too much 2009-11-24 07:17:18 +01:00
Vladimir 'phcoder' Serbinenko
4545f150f3 Various cleanups 2009-11-24 05:02:30 +01:00
Vladimir 'phcoder' Serbinenko
93fd2dd809 Optimise gfxterm in gfxmenu by avoiding indirect repainting 2009-11-24 04:22:22 +01:00
Vladimir 'phcoder' Serbinenko
a9c12f8533 Remove hardcoded hotkeys 2009-11-24 04:20:18 +01:00
Vladimir 'phcoder' Serbinenko
87efa251d5 Fix a bug in icondir handling 2009-11-21 17:48:05 +01:00
Vladimir 'phcoder' Serbinenko
aff798d6f4 icondir support 2009-11-21 15:29:12 +01:00
Vladimir 'phcoder' Serbinenko
704e21180e At least it compiles now 2009-11-20 16:07:16 +01:00
Colin D Bennett
d920a32ab6 gfxmenu import 2009-11-20 16:02:58 +01:00