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/egg | |
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/egg')
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 52 | ||||
-rwxr-xr-x | lib/egg/egg-editable-toolbar.h | 2 |
2 files changed, 54 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); |