aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-21 06:20:08 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-21 06:20:08 +0800
commit7e816a76bac00b8c34bec6849d175bd478af2f16 (patch)
tree1cca9b151780fcfb0a3ad92185054a9fb6e3f0d9 /lib
parent1e6a2895325d8c697979404c9f767217b89da76e (diff)
downloadgsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar.gz
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar.bz2
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar.lz
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar.xz
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.tar.zst
gsoc2013-epiphany-7e816a76bac00b8c34bec6849d175bd478af2f16.zip
Fix logic error, spotted by Crispin.
2004-02-20 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-editable-toolbar.c: (popup_toolbar_context_menu_cb): Fix logic error, spotted by Crispin. * lib/egg/egg-toolbars-model.h: Make it clear that EggTbModelFlags is a bitfield enum.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c2
-rwxr-xr-xlib/egg/egg-toolbars-model.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index f1d496336..461d58247 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -519,7 +519,7 @@ popup_toolbar_context_menu_cb (GtkWidget *toolbar,
position = get_toolbar_position (t, toolbar);
flags = egg_toolbars_model_get_flags (t->priv->model, position);
- if (flags && EGG_TB_MODEL_NOT_REMOVABLE)
+ if (flags & EGG_TB_MODEL_NOT_REMOVABLE)
{
gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
}
diff --git a/lib/egg/egg-toolbars-model.h b/lib/egg/egg-toolbars-model.h
index 9e1f01a50..07146cb38 100755
--- a/lib/egg/egg-toolbars-model.h
+++ b/lib/egg/egg-toolbars-model.h
@@ -41,8 +41,8 @@ typedef struct EggToolbarsModelPrivate EggToolbarsModelPrivate;
typedef enum
{
- EGG_TB_MODEL_NOT_REMOVABLE = 1,
- EGG_TB_MODEL_ICONS_ONLY = 2
+ EGG_TB_MODEL_NOT_REMOVABLE = 1 << 0,
+ EGG_TB_MODEL_ICONS_ONLY = 1 << 1
} EggTbModelFlags;
struct EggToolbarsModel