[Nautilus-list] Text view Patch
- From: Peter Snyder <kafer77a ameritech net>
 
- To: Nautilus <nautilus-list lists eazel com>
 
- Subject: [Nautilus-list] Text view Patch
 
- Date: 20 Oct 2001 03:15:37 -0500
 
This is simply a patch that, when the user level is set to begninner,
brings up a bar at the top of the text view which informs them to the
fact that this is read only, to edit, choose a application from the
sidebar (or something like that).  It complies off 1.0.5 and fufills
Sun's suggestion for the usability study.
Pete
--- nautilus-1.0.5/components/text/nautilus-text-view.c	Thu Oct  4 11:26:40 2001
+++ nautilus-text-view.c	Sat Oct 20 02:24:32 2001
@@ -182,9 +182,23 @@
 			    text_view_load_location_callback, 
 			    text_view);
 			    	
+
 	/* allocate a vbox to contain the text widget */
 	text_view->details->container = gtk_vbox_new (FALSE, 0);
 	gtk_container_set_border_width (GTK_CONTAINER (text_view->details->container), 0);
+	
+	/* Create label and place it in frame if user level is set to "Beginner"*/
+	if (eel_preferences_get_user_level() == 0)
+	{
+		GtkWidget *disclamer;
+		
+		disclamer = gtk_label_new("This text is READ ONLY!\n  To edit it, choose an option from the sidebar");
+		eel_gtk_label_make_larger (GTK_LABEL(disclamer), 3);
+		eel_gtk_label_make_bold (GTK_LABEL(disclamer));
+		gtk_box_pack_start (GTK_BOX (text_view->details->container), GTK_WIDGET (disclamer), FALSE, FALSE, FALSE);
+	
+	}	
+	
 	gtk_container_add (GTK_CONTAINER (text_view->details->event_box), GTK_WIDGET (text_view->details->container));
 	
 	/* allocate the text object */
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]