summaryrefslogtreecommitdiff
path: root/games/gtkpool/files/patch-gtkpool__main.cpp
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-08-26 03:55:36 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-08-26 03:55:36 +0000
commit5d00e2248c8e0f675e189de41914b2bc0aa545e3 (patch)
treeba19fa1afe9f9ff0d48db1208be1c27292ce9fe9 /games/gtkpool/files/patch-gtkpool__main.cpp
parent- Update MASTER_SITES and WWW: line (diff)
- Fix MASTER_SITES
- Support GTK2 (obtained from Debian Project) PR: 160102 Submitted by: Ports Fury
Diffstat (limited to 'games/gtkpool/files/patch-gtkpool__main.cpp')
-rw-r--r--games/gtkpool/files/patch-gtkpool__main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/gtkpool/files/patch-gtkpool__main.cpp b/games/gtkpool/files/patch-gtkpool__main.cpp
new file mode 100644
index 000000000000..0f76128a382d
--- /dev/null
+++ b/games/gtkpool/files/patch-gtkpool__main.cpp
@@ -0,0 +1,16 @@
+--- gtkpool/main.cpp.orig 2002-08-06 02:36:10.000000000 +0900
++++ gtkpool/main.cpp 2011-08-19 04:36:56.000000000 +0900
+@@ -162,10 +162,10 @@
+ gtk_widget_show(button);*/
+
+ //setup chat box for multiplayer
+- app.chat_text = gtk_text_new((GtkAdjustment *)NULL, (GtkAdjustment *)NULL);
++ app.chat_text = gtk_text_view_new();
+ gtk_widget_set_usize(app.chat_text, -2, 60);
+- gtk_text_set_editable(GTK_TEXT(app.chat_text), FALSE);
+- gtk_text_set_word_wrap(GTK_TEXT(app.chat_text), TRUE);
++ gtk_text_view_set_editable(GTK_TEXT_VIEW(app.chat_text), FALSE);
++ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(app.chat_text), GTK_WRAP_WORD);
+ gtk_widget_set_events (app.chat_text, GDK_NOTHING);
+ // networking not ready for this version
+