aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-string.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-10 20:48:49 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-10 20:48:49 +0800
commitc42c18f05cccabccd3b812f2ddf768d166db259c (patch)
tree5cff27d0e00fc4b886bb9148a4c30f226b433b9a /lib/ephy-string.h
parentd22a95c092b87ad574dadaa91167912a963aa528 (diff)
downloadgsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar.gz
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar.bz2
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar.lz
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar.xz
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.tar.zst
gsoc2013-epiphany-c42c18f05cccabccd3b812f2ddf768d166db259c.zip
Bring back ephy_string_shorten.
2005-10-10 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-string.c: (ephy_string_blank_chr), (ephy_string_shorten): * lib/ephy-string.h: Bring back ephy_string_shorten. * src/ephy-tab.c: (ephy_tab_file_monitor_cb), (ephy_tab_set_title): Shorten overlong tab titles, hard. Increase reload delay slightly. Strip whitespace from tab title before determining if it's empty.
Diffstat (limited to 'lib/ephy-string.h')
-rw-r--r--lib/ephy-string.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ephy-string.h b/lib/ephy-string.h
index 36e23d1c3..86ab9eafc 100644
--- a/lib/ephy-string.h
+++ b/lib/ephy-string.h
@@ -25,10 +25,13 @@
G_BEGIN_DECLS
-gboolean ephy_string_to_int (const char *string,
- gulong *integer);
+gboolean ephy_string_to_int (const char *string,
+ gulong *integer);
-char *ephy_string_blank_chr (char *source);
+char *ephy_string_blank_chr (char *source);
+
+char *ephy_string_shorten (const char *str,
+ gsize target_length);
G_END_DECLS