diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ephy-tabs-menu.c | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -17,6 +17,12 @@ 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. + +2003-06-06 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_clean), (ephy_bookmarks_menu_rebuild), (ephy_bookmarks_menu_init): * src/ephy-favorites-menu.c: (ephy_favorites_menu_clean), 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) |