From d5eed5f210049e0b3b4332ddb36b0fde6b50a76e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 20 Apr 2003 11:03:42 +0000 Subject: Update 2003-04-20 Marco Pesenti Gritti * lib/egg/egg-editable-toolbar.c: Update * data/epiphany.schemas.in: * data/ui/epiphany-ui.xml.in: * lib/egg/egg-editable-toolbar.h: * lib/ephy-prefs.h: * src/bookmarks/Makefile.am: * src/bookmarks/ephy-bookmark-properties.c: (update_checkbox), (update_window_title), (toolbar_checkbox_changed_cb), (set_window_icon), (build_ui): * src/bookmarks/ephy-bookmarks.h: * src/ephy-window.c: (add_widget), (ephy_window_init), (save_window_chrome), (ephy_window_finalize), (translate_default_chrome), (update_layout_toggles), (ephy_window_set_chrome): * src/window-commands.c: (window_cmd_view_bookmarks_toolbar): * src/window-commands.h: First implementation of the new bookmarks toolbar thing. Still doesnt work properly ... old bmk toolbars are still there though. Dave I dont like much the position of the checkbox in properties :/ Maybe a different tab dunno .... --- src/window-commands.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index 79fcb1a79..07efcdf6d 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -478,6 +478,25 @@ window_cmd_edit_find_prev (EggAction *action, ephy_window_update_control (window, FindControl); } +void +window_cmd_view_bookmarks_toolbar (EggAction *action, + EphyWindow *window) +{ + EmbedChromeMask mask; + gboolean active; + gboolean current_state; + + mask = ephy_window_get_chrome (window); + active = EGG_TOGGLE_ACTION (action)->active; + current_state = (mask & EMBED_CHROME_PERSONALTOOLBARON) > 0; + + if (active != current_state) + { + mask ^= EMBED_CHROME_PERSONALTOOLBARON; + ephy_window_set_chrome (window, mask); + } +} + void window_cmd_view_toolbar (EggAction *action, EphyWindow *window) -- cgit v1.2.3