Re: Balsa 2, utf8 and an editable widget



On 2002.07.12 16:02 Steffen Klemer wrote:
> Hi,
> 
> I just played a bit with Balsa 2 and have to say that it has already 
> gone a long way!
> Some small things I noticed that are really annoying atm (a least for 
> me)
[ snip ]
> 2) the TextView showing the header-lines is editable (is that a new 
> feature? :-)

More of an oversight! The one-line patch is:

Index: src/balsa-message.c
===================================================================
RCS file: /cvs/gnome/balsa/src/balsa-message.c,v
retrieving revision 1.201.2.24
diff -u -r1.201.2.24 balsa-message.c
--- src/balsa-message.c	2002/06/23 21:50:40	1.201.2.24
+++ src/balsa-message.c	2002/07/13 02:00:04
@@ -240,6 +240,7 @@
       /* Widget to hold headers */
      bm->header_text = gtk_text_view_new();
+    gtk_text_view_set_editable(GTK_TEXT_VIEW(bm->header_text), FALSE);
      gtk_text_view_set_left_margin(GTK_TEXT_VIEW(bm->header_text), 2);
      gtk_text_view_set_right_margin(GTK_TEXT_VIEW(bm->header_text), 2);
      gtk_signal_connect(GTK_OBJECT(bm->header_text), "key_press_event",


> And would sb. please give me a hint were to search for the creation 
> of the TextViews and other widgets (for pictures...)

I'm not sure what you're looking for:

$ grep gtk_text_view_new */*.c
libbalsa/source-viewer.c:    text   = 
gtk_text_view_new_with_buffer(buffer);
src/balsa-message.c:    bm->header_text = gtk_text_view_new();
src/balsa-message.c:        item = gtk_text_view_new();
src/sendmsg-window.c:    msg->text = gtk_text_view_new();





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