Revision: 7086
Author:   ek.kato
Date:     Sun May 15 06:01:21 2011
Log:      * gtk/uim-cand-win-gtk.c (uim_cand_win_gtk_create_sub_window) :
  Use GTK_WRAP_WORD_CHAR even for gtk+2.
* helper/candwin-gtk.c (uim_cand_win_gtk_create_sub_window) :
  Ditto.

http://code.google.com/p/uim/source/detail?r=7086

Modified:
 /trunk/gtk/uim-cand-win-gtk.c
 /trunk/helper/candwin-gtk.c

=======================================
--- /trunk/gtk/uim-cand-win-gtk.c       Fri May 13 23:04:56 2011
+++ /trunk/gtk/uim-cand-win-gtk.c       Sun May 15 06:01:21 2011
@@ -900,11 +900,7 @@

   cwin->sub_window.text_view = text_view = gtk_text_view_new();
   gtk_text_view_set_editable(GTK_TEXT_VIEW(text_view), FALSE);
-#if GTK_CHECK_VERSION(2, 90, 0)
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD_CHAR);
-#else
-  gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD);
-#endif
   gtk_widget_show(text_view);

   gtk_container_add(GTK_CONTAINER(scrwin), text_view);
=======================================
--- /trunk/helper/candwin-gtk.c Sat Feb 12 04:56:34 2011
+++ /trunk/helper/candwin-gtk.c Sun May 15 06:01:21 2011
@@ -1013,7 +1013,7 @@

   cwin->sub_window.text_view = text_view = gtk_text_view_new();
   gtk_text_view_set_editable(GTK_TEXT_VIEW(text_view), FALSE);
-  gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD);
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD_CHAR);
   gtk_widget_show(text_view);

   gtk_container_add(GTK_CONTAINER(scrwin), text_view);

Reply via email to