[gnome-initial-setup] Make the text buffer uneditable



commit cb6bfe3cef5f0da4a6fe73b83b60bbcfc7ecc497
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu May 31 16:53:37 2012 -0400

    Make the text buffer uneditable

 gnome-initial-setup/gdm-initial-setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gdm-initial-setup.c b/gnome-initial-setup/gdm-initial-setup.c
index 69a3532..2dcfc03 100644
--- a/gnome-initial-setup/gdm-initial-setup.c
+++ b/gnome-initial-setup/gdm-initial-setup.c
@@ -171,6 +171,8 @@ build_eula_text_view (GFile *eula,
                 goto out;
 
         widget = gtk_text_view_new_with_buffer (buffer);
+        gtk_text_view_set_editable (GTK_TEXT_VIEW (widget), FALSE);
+        gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (widget), FALSE);
 
  out:
         if (error != NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]