From 056e78ca2904f2a8f7eaa200098f36f0029c4425 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 17 Jul 2005 16:06:04 +0000 Subject: A embed/mozilla/EphyAboutModule.cpp: A embed/mozilla/EphyAboutModule.h: R 2005-07-17 Christian Persch A embed/mozilla/EphyAboutModule.cpp: A embed/mozilla/EphyAboutModule.h: R embed/mozilla/EphyProtocolHandler.cpp: R embed/mozilla/EphyProtocolHandler.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozRegisterComponents.cpp: * po/POTFILES.in: Yet another mozilla API change. * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_smart_bookmark_width): Remove stray g_print, and clamp entry width to sane values. --- src/bookmarks/ephy-bookmarks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 2761ee702..25caad17f 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -1383,10 +1383,9 @@ ephy_bookmarks_get_smart_bookmark_width (EphyNode *bookmark) if (number == NULL) return 0; width = atoi (number); - g_print ("Width %s -> %d\n", number, width); g_free (number); - return width; + return CLAMP (width, 1, 64); } EphyNode * -- cgit v1.2.3