diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-01-06 04:09:09 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-06 04:09:09 +0800 |
commit | a5d0e720fade615d0009a42d38b195a2db57b959 (patch) | |
tree | 680971bcad3fb63c103cdb282eba881d82aad6ba /src/ephy-window.c | |
parent | 41e8ca8d5152c7acf6e39070b49c8f3715110e8d (diff) | |
download | gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar.gz gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar.bz2 gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar.lz gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar.xz gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.tar.zst gsoc2013-epiphany-a5d0e720fade615d0009a42d38b195a2db57b959.zip |
Consistently start enum names with EPHY_*.
2005-01-05 Crispin Flowerday <gnome@flowerday.cx>
* embed/ephy-embed-event.c: (ephy_embed_event_context_get_type):
* embed/ephy-embed-event.h:
* embed/ephy-embed-persist.c: (ephy_embed_persist_flags_get_type):
* embed/ephy-embed-persist.h:
* embed/ephy-embed.c: (ephy_embed_net_state_get_type),
(ephy_embed_ppv_navigation_get_type),
(ephy_embed_security_level_get_type),
(ephy_embed_document_type_get_type):
* embed/ephy-embed.h:
* embed/ephy-favicon-cache.c: (ephy_favicon_cache_download):
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyHeaderSniffer.cpp:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/mozilla-embed-persist.cpp:
* embed/mozilla/mozilla-embed.cpp:
* src/ephy-shell.c: (ephy_shell_new_tab):
* src/ephy-tab.c: (ephy_tab_address_expire_get_type),
(ephy_tab_navigation_flags_get_type), (ephy_tab_set_property),
(ephy_tab_class_init), (ephy_tab_get_document_type),
(ephy_tab_address_cb), (update_net_state_message),
(build_progress_from_requests), (ensure_page_info),
(ephy_tab_net_state_cb), (ephy_tab_dom_mouse_click_cb),
(ephy_tab_init), (ephy_tab_update_navigation_flags),
(ephy_tab_set_location), (ephy_tab_get_security_level):
* src/ephy-tab.h:
* src/ephy-window.c: (sync_tab_document_type),
(sync_tab_navigation), (sync_tab_security), (sync_tab_zoom),
(update_popups_tooltips), (show_embed_popup):
* src/popup-commands.c: (popup_cmd_copy_link_address),
(save_property_url), (popup_cmd_set_image_as_background),
(save_temp_source):
* src/ppview-toolbar.c: (toolbar_cmd_ppv_goto_first),
(toolbar_cmd_ppv_goto_last), (toolbar_cmd_ppv_go_back),
(toolbar_cmd_ppv_go_forward):
* src/toolbar.c: (sync_user_input_cb):
* src/window-commands.c: (window_cmd_file_save_as),
(save_temp_source):
Consistently start enum names with EPHY_*.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index abb509098..9b5ab4f69 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1221,8 +1221,8 @@ sync_tab_document_type (EphyTab *tab, sync_tab_zoom (tab, NULL, window); type = ephy_tab_get_document_type (tab); - can_find = (type != EMBED_DOCUMENT_IMAGE); - enable = (type == EMBED_DOCUMENT_HTML); + can_find = (type != EPHY_EMBED_DOCUMENT_IMAGE); + enable = (type == EPHY_EMBED_DOCUMENT_HTML); action_group = window->priv->action_group; action = gtk_action_group_get_action (action_group, "ViewEncoding"); @@ -1307,15 +1307,15 @@ sync_tab_navigation (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) flags = ephy_tab_get_navigation_flags (tab); - if (flags & TAB_NAV_UP) + if (flags & EPHY_TAB_NAV_UP) { up = TRUE; } - if (flags & TAB_NAV_BACK) + if (flags & EPHY_TAB_NAV_BACK) { back = TRUE; } - if (flags & TAB_NAV_FORWARD) + if (flags & EPHY_TAB_NAV_FORWARD) { forward = TRUE; } @@ -1358,25 +1358,25 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) switch (level) { - case STATE_IS_UNKNOWN: + case EPHY_EMBED_STATE_IS_UNKNOWN: state = _("Unknown"); break; - case STATE_IS_INSECURE: + case EPHY_EMBED_STATE_IS_INSECURE: state = _("Insecure"); break; - case STATE_IS_BROKEN: + case EPHY_EMBED_STATE_IS_BROKEN: state = _("Broken"); stock_id = STOCK_LOCK_BROKEN; break; - case STATE_IS_SECURE_MED: + case EPHY_EMBED_STATE_IS_SECURE_MED: state = _("Medium"); stock_id = STOCK_LOCK_SECURE; break; - case STATE_IS_SECURE_LOW: + case EPHY_EMBED_STATE_IS_SECURE_LOW: state = _("Low"); stock_id = STOCK_LOCK_SECURE; break; - case STATE_IS_SECURE_HIGH: + case EPHY_EMBED_STATE_IS_SECURE_HIGH: state = _("High"); stock_id = STOCK_LOCK_SECURE; break; @@ -1548,7 +1548,7 @@ sync_tab_zoom (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) zoom = ephy_tab_get_zoom (tab); type = ephy_tab_get_document_type (tab); - can_zoom = (type != EMBED_DOCUMENT_IMAGE); + can_zoom = (type != EPHY_EMBED_DOCUMENT_IMAGE); if (zoom >= ZOOM_MAXIMAL) { @@ -1657,7 +1657,7 @@ update_popups_tooltips (EphyWindow *window, EphyEmbedEvent *event) context = ephy_embed_event_get_context (event); - if (context & EMBED_CONTEXT_IMAGE) + if (context & EPHY_EMBED_CONTEXT_IMAGE) { ephy_embed_event_get_property (event, "image", &value); name = get_name_from_address_value (value); @@ -1686,7 +1686,7 @@ update_popups_tooltips (EphyWindow *window, EphyEmbedEvent *event) g_free (name); } - if (context & EMBED_CONTEXT_EMAIL_LINK) + if (context & EPHY_EMBED_CONTEXT_EMAIL_LINK) { ephy_embed_event_get_property (event, "link", &value); @@ -1703,7 +1703,7 @@ update_popups_tooltips (EphyWindow *window, EphyEmbedEvent *event) g_free (tooltip); } - if (context & EMBED_CONTEXT_LINK) + if (context & EPHY_EMBED_CONTEXT_LINK) { ephy_embed_event_get_property (event, "link", &value); @@ -1756,31 +1756,31 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) LOG ("show_embed_popup context %x", context) - if ((context & EMBED_CONTEXT_EMAIL_LINK) && - (context & EMBED_CONTEXT_IMAGE)) + if ((context & EPHY_EMBED_CONTEXT_EMAIL_LINK) && + (context & EPHY_EMBED_CONTEXT_IMAGE)) { popup = "/EphyImageEmailLinkPopup"; } - else if (context & EMBED_CONTEXT_EMAIL_LINK) + else if (context & EPHY_EMBED_CONTEXT_EMAIL_LINK) { popup = "/EphyEmailLinkPopup"; update_edit_actions_sensitivity (window, TRUE); } - else if ((context & EMBED_CONTEXT_LINK) && - (context & EMBED_CONTEXT_IMAGE)) + else if ((context & EPHY_EMBED_CONTEXT_LINK) && + (context & EPHY_EMBED_CONTEXT_IMAGE)) { popup = "/EphyImageLinkPopup"; } - else if (context & EMBED_CONTEXT_LINK) + else if (context & EPHY_EMBED_CONTEXT_LINK) { popup = "/EphyLinkPopup"; update_edit_actions_sensitivity (window, TRUE); } - else if (context & EMBED_CONTEXT_IMAGE) + else if (context & EPHY_EMBED_CONTEXT_IMAGE) { popup = "/EphyImagePopup"; } - else if (context & EMBED_CONTEXT_INPUT) + else if (context & EPHY_EMBED_CONTEXT_INPUT) { popup = "/EphyInputPopup"; update_edit_actions_sensitivity (window, FALSE); |