diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-20 19:03:42 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-20 19:03:42 +0800 |
commit | d5eed5f210049e0b3b4332ddb36b0fde6b50a76e (patch) | |
tree | 060439e101e1399c1f0cf05cc6b37a2af90f4128 /lib | |
parent | 1ae8286ebfe005b34e1ebe7068fc364aa3a4cb09 (diff) | |
download | gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar.gz gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar.bz2 gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar.lz gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar.xz gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.tar.zst gsoc2013-epiphany-d5eed5f210049e0b3b4332ddb36b0fde6b50a76e.zip |
Update
2003-04-20 Marco Pesenti Gritti <marco@it.gnome.org>
* 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 ....
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 52 | ||||
-rwxr-xr-x | lib/egg/egg-editable-toolbar.h | 2 | ||||
-rw-r--r-- | lib/ephy-prefs.h | 1 |
3 files changed, 55 insertions, 0 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index 8e875842e..73528b96d 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -1169,6 +1169,58 @@ set_action_sensitive (EggToolbarsItem *item, } } +static void +hide_toolbar (EggToolbarsToolbar *t, + EggEditableToolbar *etoolbar) +{ + GtkWidget *tb; + + g_return_if_fail (IS_EGG_EDITABLE_TOOLBAR (etoolbar)); + g_return_if_fail (t != NULL); + + tb = get_item_widget (etoolbar, t); + + g_return_if_fail (tb != NULL); + + gtk_widget_hide (tb); +} + +static void +show_toolbar (EggToolbarsToolbar *t, + EggEditableToolbar *etoolbar) +{ + GtkWidget *tb; + + g_return_if_fail (IS_EGG_EDITABLE_TOOLBAR (etoolbar)); + g_return_if_fail (t != NULL); + + tb = get_item_widget (etoolbar, t); + + g_return_if_fail (tb != NULL); + + gtk_widget_show (tb); +} + +void +egg_editable_toolbar_show (EggEditableToolbar *etoolbar) +{ + g_return_if_fail (IS_EGG_EDITABLE_TOOLBAR (etoolbar)); + + egg_toolbars_group_foreach_toolbar (etoolbar->priv->group, + (EggToolbarsGroupForeachToolbarFunc) + show_toolbar, etoolbar); +} + +void +egg_editable_toolbar_hide (EggEditableToolbar *etoolbar) +{ + g_return_if_fail (IS_EGG_EDITABLE_TOOLBAR (etoolbar)); + + egg_toolbars_group_foreach_toolbar (etoolbar->priv->group, + (EggToolbarsGroupForeachToolbarFunc) + hide_toolbar, etoolbar); +} + void egg_editable_toolbar_edit (EggEditableToolbar *etoolbar, GtkWidget *window) diff --git a/lib/egg/egg-editable-toolbar.h b/lib/egg/egg-editable-toolbar.h index 29ccf8200..f4f8aff64 100755 --- a/lib/egg/egg-editable-toolbar.h +++ b/lib/egg/egg-editable-toolbar.h @@ -62,6 +62,8 @@ EggEditableToolbar *egg_editable_toolbar_new (EggMenuMerge *merge, EggToolbarsGroup *group); void egg_editable_toolbar_edit (EggEditableToolbar *etoolbar, GtkWidget *window); +void egg_editable_toolbar_show (EggEditableToolbar *etoolbar); +void egg_editable_toolbar_hide (EggEditableToolbar *etoolbar); char *egg_editable_toolbar_get_action_name (EggEditableToolbar *etoolbar, const char *drag_type, const char *data); diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h index f4d4cf286..cd52d34b4 100644 --- a/lib/ephy-prefs.h +++ b/lib/ephy-prefs.h @@ -36,6 +36,7 @@ G_BEGIN_DECLS #define CONF_WINDOWS_FS_SHOW_STATUSBAR "/apps/epiphany/interface/show_statusbar_in_fullscreen" #define CONF_WINDOWS_SHOW_SIDEBAR "/apps/epiphany/interface/show_sidebar" #define CONF_WINDOWS_SHOW_TOOLBARS "/apps/epiphany/interface/show_toolbars" +#define CONF_WINDOWS_SHOW_PERSONAL_TOOLBAR "/apps/epiphany/interface/show_personal_toolbar" #define CONF_WINDOWS_SHOW_STATUSBAR "/apps/epiphany/interface/show_statusbar" #define CONF_TOOLBAR_SETUP "/apps/epiphany/interface/toolbar_setup" #define CONF_TOOLBAR_SPINNER_THEME "/apps/epiphany/interface/spinner_theme" |