diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-06-15 13:41:15 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-06-15 13:41:15 -0400 |
commit | 19e8ee22c9cfe63236f41736d8f834ad322a5f33 (patch) | |
tree | 9d9b3d5b3032a0ba4c1b8e9696e35daff23cd79a /src/menu.cc | |
parent | 9e75abad430bcf48fadc1f950e09080764d9cdc1 (diff) |
Splash screen
Diffstat (limited to 'src/menu.cc')
-rw-r--r-- | src/menu.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/menu.cc b/src/menu.cc index 9757f523..5e102a07 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -690,6 +690,20 @@ static void Menu_imgload_toggle_cb(Widget *wid) } } +static void Menu_fontsize_inc_cb(Widget *wid) +{ + MSG("Menu_fontsize_inc_cb\n"); + prefs.font_factor += 0.2; + a_UIcmd_repush(popup_bw); +} + +static void Menu_fontsize_dec_cb(Widget *wid) +{ + MSG("Menu_fontsize_dec_cb\n"); + prefs.font_factor -= 0.2; + a_UIcmd_repush(popup_bw); +} + /* * Tools popup menu (construction & popup) */ @@ -705,6 +719,11 @@ void a_Menu_tools_popup(BrowserWindow *bw, void *v_wid) if (!pm) { pm = new PopupMenu(0,0,0,0, "TOOLS"); pm->begin(); + it = new Item("Larger fonts"); + it->callback(Menu_fontsize_inc_cb); + it = new Item("Smaller fonts"); + it->callback(Menu_fontsize_dec_cb); + new Divider(); it = new ToggleItem("Use remote CSS"); it->callback(Menu_remote_css_cb); it->state(prefs.load_stylesheets); |