diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-07 02:28:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-07 02:28:55 +0800 |
commit | c3422e72c44eb2999de994b8151ec2db2e591631 (patch) | |
tree | 95365fcd667709b2abcd86082fadec4fc3d3c037 /src/ephy-toolbar.c | |
parent | 91edd219e3e228dfaa559d524401aceed31329c7 (diff) | |
download | gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar.gz gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar.bz2 gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar.lz gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar.xz gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.tar.zst gsoc2013-epiphany-c3422e72c44eb2999de994b8151ec2db2e591631.zip |
Add style properties for 'secure-[bg|fg]-color', and apply them when the
2005-10-06 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-location-entry.c:
(ephy_location_entry_style_set), (ephy_location_entry_class_init),
(ephy_location_entry_set_favicon),
(ephy_location_entry_set_secure):
* lib/widgets/ephy-location-entry.h:
Add style properties for 'secure-[bg|fg]-color', and apply them when
the entry is in 'secure' mode. Reset the IM context before emitting
the 'activate' signal.
* src/ephy-location-action.c: (sync_secure), (connect_proxy),
(ephy_location_action_set_property),
(ephy_location_action_get_property),
(ephy_location_action_class_init):
* src/ephy-toolbar.c: (ephy_toolbar_set_security_state),
(ephy_toolbar_init):
* src/ephy-toolbar.h:
* src/ephy-window.c: (sync_chromes_visibility),
(sync_tab_security):
Set the location entry's 'secure' property on secure sites,
and also always show the lock for secure sites.
Diffstat (limited to 'src/ephy-toolbar.c')
-rwxr-xr-x | src/ephy-toolbar.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index eb8691fae..1e6e8a0e1 100755 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -78,6 +78,7 @@ struct _EphyToolbarPrivate gulong set_focus_handler; gboolean updating_address; gboolean show_lock; + gboolean is_secure; gboolean lock_visible; gboolean leave_fullscreen_visible; gboolean spinning; @@ -471,6 +472,7 @@ ephy_toolbar_set_navigation_actions (EphyToolbar *toolbar, void ephy_toolbar_set_security_state (EphyToolbar *toolbar, + gboolean is_secure, gboolean show_lock, const char *stock_id, const char *tooltip) @@ -478,11 +480,13 @@ ephy_toolbar_set_security_state (EphyToolbar *toolbar, EphyToolbarPrivate *priv = toolbar->priv; priv->show_lock = show_lock; + priv->is_secure = is_secure; g_object_set (priv->actions[LOCATION_ACTION], "lock-stock-id", stock_id, "lock-tooltip", tooltip, "show-lock", priv->lock_visible && priv->show_lock, + "secure", is_secure, NULL); } @@ -588,7 +592,11 @@ ephy_toolbar_hide (GtkWidget *widget) static void ephy_toolbar_init (EphyToolbar *toolbar) { - toolbar->priv = EPHY_TOOLBAR_GET_PRIVATE (toolbar); + EphyToolbarPrivate *priv; + + priv = toolbar->priv = EPHY_TOOLBAR_GET_PRIVATE (toolbar); + + priv->lock_visible = TRUE; } static GObject * |