[Pkg-privacy-commits] [nautilus-wipe] 111/224: Wrap error message
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 19:45:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository nautilus-wipe.
commit 465cffbf9e43d90f876dd714ff7ae00a49b26769
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Sat Apr 30 04:39:06 2011 +0200
Wrap error message
Wrap the error message if it doesn't fit the dialog, and also allow
horizontal scrolling it necessary.
This prevents the error dialog to resize to a maybe too large size
when showing the details if they contains a long line.
---
nautilus-srm/operation-manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nautilus-srm/operation-manager.c b/nautilus-srm/operation-manager.c
index 72cdc84..978dd42 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -208,12 +208,13 @@ display_operation_error (struct NautilusSrmOperationData *opdata,
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
GTK_SHADOW_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
- GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_container_add (GTK_CONTAINER (expander), scroll);
buffer = gtk_text_buffer_new (NULL);
gtk_text_buffer_set_text (buffer, error, -1);
view = gtk_text_view_new_with_buffer (buffer);
gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE);
+ gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD);
gtk_container_add (GTK_CONTAINER (scroll), view);
gtk_widget_show_all (expander);
/* show the dialog */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git
More information about the Pkg-privacy-commits
mailing list