aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-07-19 01:54:33 +0800
committerChristian Persch <chpe@src.gnome.org>2006-07-19 01:54:33 +0800
commit845877cbbba8ce71c5a9415b2efdd91c14850a7a (patch)
tree3ba18b4489b1b7c09a4e39d0f4c8af2c52ce9328 /embed/mozilla
parent39ff59cdb1658da07ec3ba1512c0ed752e0ec43c (diff)
downloadgsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar.gz
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar.bz2
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar.lz
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar.xz
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.tar.zst
gsoc2013-epiphany-845877cbbba8ce71c5a9415b2efdd91c14850a7a.zip
Force label wrapping.
2006-07-18 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyPromptService.cpp: Force label wrapping.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EphyPromptService.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/embed/mozilla/EphyPromptService.cpp b/embed/mozilla/EphyPromptService.cpp
index 4d934f23a..67acd7d4a 100644
--- a/embed/mozilla/EphyPromptService.cpp
+++ b/embed/mozilla/EphyPromptService.cpp
@@ -170,6 +170,8 @@ Prompter::Prompter (const char *aStock,
g_free (text);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+ /* Guard against overlong nonbreakable text (exploit) */
+ gtk_label_set_line_wrap_mode (GTK_LABEL (label), PANGO_WRAP_WORD_CHAR);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);