[Fwd: Re: [Nautilus-list] [Patch] Text view disclaimer]



on 10/23/01 3:47 PM, Christian Rose at menthos menthos com wrote:

>> +       disclaimer = gtk_label_new ("This text is read only\nTo edit it,
>> choose an option from the sidebar");
> 
> Shouldn't this text be localized (be marked for xgettext extraction)?

Yes. Definitely. Sorry I missed that.

    -- Darin
Ok, here is that change.  All should be well....
Might this be in 1.0.6?

Pete

PS, sorry for the time it took to make this small change, I was out of town.
--- nautilus-1.0.5/components/text/nautilus-text-view.c	Thu Oct  4 11:26:40 2001
+++ nautilus-1.0.5-devel/components/text/nautilus-text-view.c	Mon Oct 22 06:58:06 2001
@@ -148,6 +148,7 @@
 nautilus_text_view_initialize (NautilusTextView *text_view)
 {
 	GtkWidget *scrolled_window;
+	GtkWidget *disclaimer;
 	
 	text_view->details = g_new0 (NautilusTextViewDetails, 1);
 
@@ -182,9 +183,18 @@
 			    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, add formating changes, and place it in frame */
+		
+	disclaimer = gtk_label_new (_("This text is read only\nTo edit it, choose an option from the sidebar"));
+	eel_gtk_label_make_larger (GTK_LABEL(disclaimer), 2);
+	eel_gtk_label_make_bold (GTK_LABEL(disclaimer));
+	gtk_box_pack_start (GTK_BOX (text_view->details->container), GTK_WIDGET (disclaimer), 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]