aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-04 02:43:33 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-04 02:43:33 +0800
commit569106975500d16750f6bf9dcfd716c4e898f891 (patch)
tree1c12cc5a846e7c59e7d7ad9ea9f5720639adc1ec /src/ephy-tab.c
parent8665558111a7e4bc439818a8fc1c34c81bac7da4 (diff)
downloadgsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar.gz
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar.bz2
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar.lz
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar.xz
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.tar.zst
gsoc2013-epiphany-569106975500d16750f6bf9dcfd716c4e898f891.zip
Use new enum and flags types.
2005-01-03 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tab.c: (ephy_tab_get_property), (ephy_tab_class_init): Use new enum and flags types.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 02ea45ff7..dea86f867 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -275,10 +275,10 @@ ephy_tab_get_property (GObject *object,
g_value_set_string (value, ephy_tab_get_status_message (tab));
break;
case PROP_NAVIGATION:
- g_value_set_int (value, tab->priv->nav_flags);
+ g_value_set_flags (value, tab->priv->nav_flags);
break;
case PROP_SECURITY:
- g_value_set_int (value, tab->priv->security_level);
+ g_value_set_enum (value, tab->priv->security_level);
break;
case PROP_HIDDEN_POPUP_COUNT:
g_value_set_int (value, popup_blocker_n_hidden (tab));
@@ -449,15 +449,12 @@ ephy_tab_class_init (EphyTabClass *class)
g_object_class_install_property (object_class,
PROP_NAVIGATION,
- g_param_spec_int ("navigation",
- "Navigation flags",
- "The tab's navigation flags",
- 0,
- TAB_NAV_UP |
- TAB_NAV_BACK |
- TAB_NAV_FORWARD,
- 0,
- G_PARAM_READABLE));
+ g_param_spec_flags ("navigation",
+ "Navigation flags",
+ "The tab's navigation flags",
+ EPHY_TYPE_TAB_NAVIGATION_FLAGS,
+ 0,
+ G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_SECURITY,