summaryrefslogtreecommitdiff
path: root/editors/scite
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-07 07:51:14 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-07 07:51:14 +0000
commitbdc61ea5e863c45dc08ecd216e98411c34a03904 (patch)
tree38d763e003de800f0d91e435ba00d38b3da8013b /editors/scite
parentdrop maintainership. (diff)
Fix build with gtk+-1.2.
Obtained from: SciTE CVS
Notes
Notes: svn path=/head/; revision=106384
Diffstat (limited to 'editors/scite')
-rw-r--r--editors/scite/Makefile2
-rw-r--r--editors/scite/files/patch-SciTEGTK.cxx22
2 files changed, 22 insertions, 2 deletions
diff --git a/editors/scite/Makefile b/editors/scite/Makefile
index d0b51d44a15b..fb60b2167b3e 100644
--- a/editors/scite/Makefile
+++ b/editors/scite/Makefile
@@ -37,8 +37,6 @@ MAKE_ARGS= GTK1=yes
MAN1= scite.1
-BROKEN= "Does not compile"
-
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "SciTE has the following tunable option(s):"
diff --git a/editors/scite/files/patch-SciTEGTK.cxx b/editors/scite/files/patch-SciTEGTK.cxx
new file mode 100644
index 000000000000..9206752a4ec0
--- /dev/null
+++ b/editors/scite/files/patch-SciTEGTK.cxx
@@ -0,0 +1,22 @@
+--- SciTEGTK.cxx.orig Wed Apr 7 03:47:55 2004
++++ SciTEGTK.cxx Wed Apr 7 03:48:14 2004
+@@ -1232,7 +1232,9 @@
+ gtk_widget_show(comboDir);
+ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(comboDir)->entry), findInDir);
+ // Make a little wider than would happen automatically to show realistic paths
++#if GTK_MAJOR_VERSION >= 2
+ gtk_entry_set_width_chars(GTK_ENTRY(GTK_COMBO(comboDir)->entry), 40);
++#endif
+ gtk_signal_connect(GTK_OBJECT(GTK_COMBO(comboDir)->entry),
+ "activate", GtkSignalFunc(FindInFilesSignal), this);
+ gtk_combo_disable_activate(GTK_COMBO(comboDir));
+@@ -1622,7 +1624,9 @@
+ row, row + 1, optse, opts, 5, 5);
+ gtk_widget_show(comboFind);
+ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(comboFind)->entry), findWhat.c_str());
++#if GTK_MAJOR_VERSION >= 2
+ gtk_entry_set_width_chars(GTK_ENTRY(GTK_COMBO(comboFind)->entry), 40);
++#endif
+ gtk_entry_select_region(GTK_ENTRY(GTK_COMBO(comboFind)->entry), 0, findWhat.length());
+ gtk_signal_connect(GTK_OBJECT(GTK_COMBO(comboFind)->entry),
+ "activate", GtkSignalFunc(FRFindSignal), this);