aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorCrispin Flowerday <gnome@flowerday.cx>2005-01-04 02:28:50 +0800
committerCrispin Flowerday <crispin@src.gnome.org>2005-01-04 02:28:50 +0800
commitb369515aba539de144a26529515fdcbeb1b7e07d (patch)
tree363d35033982d7d8d1243e4f65decb81f4cbbd53 /src/ephy-tab.c
parenta27574b5576a9ee8cbbd83ad361290c7d0bc9704 (diff)
downloadgsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar.gz
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar.bz2
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar.lz
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar.xz
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.tar.zst
gsoc2013-epiphany-b369515aba539de144a26529515fdcbeb1b7e07d.zip
Add some more types for enums and flags
2005-01-03 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-shell.c: (ephy_shell_error_get_type), (ephy_shell_startup_flags_get_type), (ephy_new_tab_flags_get_type): * src/ephy-shell.h: * src/ephy-tab.c: (ephy_tab_address_expire_get_type), (ephy_tab_navigation_flags_get_type): * src/ephy-tab.h: Add some more types for enums and flags
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 4f0588a9d..02ea45ff7 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -142,6 +142,44 @@ static guint popup_blocker_n_hidden (EphyTab *tab);
static gboolean ephy_tab_get_popups_allowed (EphyTab *tab);
static void ephy_tab_set_popups_allowed (EphyTab *tab,
gboolean allowed);
+GType
+ephy_tab_address_expire_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ {
+ static const GEnumValue values[] =
+ {
+ { TAB_ADDRESS_EXPIRE_NOW, "TAB_ADDRESS_EXPIRE_NOW", "expire-now" },
+ { TAB_ADDRESS_EXPIRE_NEXT, "TAB_ADDRESS_EXPIRE_NEXT", "expire-next" },
+ { TAB_ADDRESS_EXPIRE_CURRENT, "TAB_ADDRESS_EXPIRE_CURRENT", "expire-current" },
+ { 0, NULL, NULL }
+ };
+ type = g_enum_register_static ("TabAddressExpire", values);
+ }
+ return type;
+}
+
+GType
+ephy_tab_navigation_flags_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ {
+ static const GFlagsValue values[] =
+ {
+ { TAB_NAV_UP, "TAB_NAV_UP", "up" },
+ { TAB_NAV_BACK, "TAB_NAV_BACK", "back" },
+ { TAB_NAV_FORWARD, "TAB_NAV_FORWARD", "forward" },
+ { 0, NULL, NULL }
+ };
+ type = g_flags_register_static ("TabNavigationFlags", values);
+ }
+ return type;
+}
+
/* Class functions */