tRedundant and legacy code removed; now compiles with GTK+2 without needing the GTK_ENABLE_BROKEN #define. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit ba8864a10336774f436cd9abaee56a15113c2602
parent 46a6b4ca44b25a3395a80a70206ac0083fe08cc3
Author: Ben Webb 
Date:   Thu,  4 Apr 2002 16:10:23 +0000

Redundant and legacy code removed; now compiles with GTK+2 without needing
tthe GTK_ENABLE_BROKEN #define.


Diffstat:
  M src/gtkport/gtkport.c               |       1 -
  M src/gui_client/gtk_client.c         |      11 -----------

2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -25,7 +25,6 @@
 #endif
 
 #ifndef CYGWIN
-#define GTK_ENABLE_BROKEN
 #include           /* For pid_t (fork) */
 #ifdef HAVE_UNISTD_H
 #include              /* For fork and execv */
diff --git a/src/gui_client/gtk_client.c b/src/gui_client/gtk_client.c
t@@ -24,8 +24,6 @@
 #include 
 #endif
 
-#define GTK_ENABLE_BROKEN
-
 #include 
 #include 
 #include 
t@@ -2100,7 +2098,6 @@ gboolean GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail)
       *vpaned, *button, *clist;
   GtkAccelGroup *accel_group;
   GtkItemFactory *item_factory;
-  GtkAdjustment *adj;
   gint nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]);
 
 #ifdef CYGWIN
t@@ -2180,14 +2177,6 @@ gboolean GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail)
 
   vpaned = gtk_vpaned_new();
 
-/*adj = (GtkAdjustment *)gtk_adjustment_new(0.0, 0.0, 100.0,
-                                            1.0, 10.0, 10.0);
-  text = ClientData.messages = gtk_scrolled_text_new(NULL, adj, &hbox);
-  gtk_widget_set_usize(text, 100, 80);
-  gtk_text_set_point(GTK_TEXT(text), 0);
-  gtk_text_set_editable(GTK_TEXT(text), FALSE);
-  gtk_text_set_word_wrap(GTK_TEXT(text), TRUE);*/
-
   text = ClientData.messages = gtk_scrolled_text_view_new(&hbox);
   make_tags(GTK_TEXT_VIEW(text));
   gtk_widget_set_usize(text, 100, 80);