diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-07 03:08:58 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-07 03:08:58 +0800 |
commit | f6d5d88afad2d84ae8be385a1d63c8858cb78b5c (patch) | |
tree | cf6221c91236a07c30795df791d820a7d7436fe7 /src | |
parent | c535171fc9404e8349cd90a47a92b4ad41c5a398 (diff) | |
download | gsoc2013-epiphany-f6d5d88afad2d84ae8be385a1d63c8858cb78b5c.tar.gz gsoc2013-epiphany-f6d5d88afad2d84ae8be385a1d63c8858cb78b5c.tar.zst gsoc2013-epiphany-f6d5d88afad2d84ae8be385a1d63c8858cb78b5c.zip |
Fix signed/unsigned mistake.
2003-06-06 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tabs-menu.c: (ephy_tabs_menu_init), (ephy_tabs_menu_clean):
Fix signed/unsigned mistake.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-tabs-menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index 67737997a..f1352230d 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -126,7 +126,7 @@ ephy_tabs_menu_init (EphyTabsMenu *wrhm) EphyTabsMenuPrivate *p = g_new0 (EphyTabsMenuPrivate, 1); wrhm->priv = p; - wrhm->priv->ui_id = -1; + wrhm->priv->ui_id = 0; wrhm->priv->action_group = NULL; } @@ -136,10 +136,11 @@ ephy_tabs_menu_clean (EphyTabsMenu *wrhm) EphyTabsMenuPrivate *p = wrhm->priv; EggMenuMerge *merge = EGG_MENU_MERGE (p->window->ui_merge); - if (p->ui_id >= 0) + if (p->ui_id > 0) { egg_menu_merge_remove_ui (merge, p->ui_id); egg_menu_merge_ensure_update (merge); + p->ui_id = 0; } if (p->action_group != NULL) |