paperbox r109 - in trunk: . src



Author: markoa
Date: Sat Mar  8 22:46:39 2008
New Revision: 109
URL: http://svn.gnome.org/viewvc/paperbox?rev=109&view=rev

Log:
Wrap words in text view, larger window size.

Modified:
   trunk/ChangeLog
   trunk/src/category-editor.cc

Modified: trunk/src/category-editor.cc
==============================================================================
--- trunk/src/category-editor.cc	(original)
+++ trunk/src/category-editor.cc	Sat Mar  8 22:46:39 2008
@@ -33,6 +33,9 @@
     using std::list;
     using boost::shared_ptr;
 
+    const int DEFAULT_WIDTH = 500;
+    const int DEFAULT_HEIGHT = 375;
+
     CategoryEditor::CategoryEditor(
         GtkDialog* cobject,
         const Glib::RefPtr<Gnome::Glade::Xml>& glade)
@@ -95,6 +98,9 @@
         vbox_right_->pack_start(scroll_window_);
         scroll_window_.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
         scroll_window_.add(text_view_);
+        text_view_.set_wrap_mode(Gtk::WRAP_WORD);
+
+        set_default_size(DEFAULT_WIDTH, DEFAULT_HEIGHT);
 
         show_all_children();
     }



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