tAdded a nice frame to the GtkTextView widget. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit d91f17fcf83e9257bcb1bb202fe45e5682b59398
parent 5f1f6bff95d1bb2c9cf8eba570b85dd882c01181
Author: Ben Webb 
Date:   Thu,  4 Apr 2002 16:06:08 +0000

Added a nice frame to the GtkTextView widget.


Diffstat:
  M src/gtkport/gtkport.c               |      10 ++++++++--

1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -5057,14 +5057,20 @@ GtkWidget *gtk_scrolled_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj,
 
 GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg)
 {
-  GtkWidget *textview, *scrollwin;
+  GtkWidget *textview, *scrollwin, *frame;
 
   textview = gtk_text_view_new();
+
+  frame = gtk_frame_new(NULL);
+  gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN);
+
   scrollwin = gtk_scrolled_window_new(NULL, NULL);
   gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin),
                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_container_add(GTK_CONTAINER(scrollwin), textview);
-  *pack_widg = scrollwin;
+  gtk_container_add(GTK_CONTAINER(frame), scrollwin);
+
+  *pack_widg = frame;
   return textview;
 }