mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
[project @ 2006-01-07 00:40:59 by rjw]
Add new configure tools. Improve initial window size. svn path=/import/netsurf/; revision=2007
This commit is contained in:
parent
a9b27cf661
commit
3e2ec17a62
@ -74,13 +74,19 @@ void ro_gui_configure_initialise(void) {
|
||||
ro_gui_configure_register("con_theme",
|
||||
ro_gui_options_theme_initialise,
|
||||
ro_gui_options_theme_finalise);
|
||||
ro_gui_configure_register("con_cache",
|
||||
ro_gui_options_cache_initialise,
|
||||
ro_gui_wimp_event_finalise);
|
||||
ro_gui_configure_register("con_home",
|
||||
ro_gui_options_home_initialise,
|
||||
ro_gui_wimp_event_finalise);
|
||||
}
|
||||
|
||||
void ro_gui_configure_show(void) {
|
||||
int width, height;
|
||||
|
||||
width = configure_icon_width * 5;
|
||||
height = (configure_icons % 5) * configure_icon_height;
|
||||
width = configure_icon_width << 2;
|
||||
height = ((configure_icons + 3) >> 2) * configure_icon_height;
|
||||
ro_gui_dialog_open_top(configure_window, NULL, width, height);
|
||||
}
|
||||
|
||||
|
@ -15,10 +15,12 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
bool ro_gui_options_cache_initialise(wimp_w w);
|
||||
bool ro_gui_options_fonts_initialise(wimp_w w);
|
||||
bool ro_gui_options_memory_initialise(wimp_w w);
|
||||
bool ro_gui_options_home_initialise(wimp_w w);
|
||||
bool ro_gui_options_image_initialise(wimp_w w);
|
||||
void ro_gui_options_image_finalise(wimp_w w);
|
||||
bool ro_gui_options_memory_initialise(wimp_w w);
|
||||
bool ro_gui_options_theme_initialise(wimp_w w);
|
||||
void ro_gui_options_theme_finalise(wimp_w w);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user