aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-18 00:06:04 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-18 00:06:04 +0800
commit056e78ca2904f2a8f7eaa200098f36f0029c4425 (patch)
treef470b02bc5cd83049fee08d65b6f5f37e13bd344 /src/bookmarks
parent23c1956430766dd72294ca2ca5f79e199ad7ed3b (diff)
downloadgsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.gz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.bz2
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.lz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.xz
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.tar.zst
gsoc2013-epiphany-056e78ca2904f2a8f7eaa200098f36f0029c4425.zip
A embed/mozilla/EphyAboutModule.cpp: A embed/mozilla/EphyAboutModule.h: R
2005-07-17 Christian Persch <chpe@cvs.gnome.org> 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.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks.c3
1 files changed, 1 insertions, 2 deletions
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 *