[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:
Richard Wilson 2006-01-07 00:40:59 +00:00
parent a9b27cf661
commit 3e2ec17a62
2 changed files with 11 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);