diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-07 07:51:14 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-07 07:51:14 +0000 |
commit | bdc61ea5e863c45dc08ecd216e98411c34a03904 (patch) | |
tree | 38d763e003de800f0d91e435ba00d38b3da8013b /editors/scite | |
parent | 6d6adc1d8921057d4805e07444119d504629904f (diff) | |
download | ports-bdc61ea5e863c45dc08ecd216e98411c34a03904.tar.gz ports-bdc61ea5e863c45dc08ecd216e98411c34a03904.zip |
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/Makefile | 2 | ||||
-rw-r--r-- | editors/scite/files/patch-SciTEGTK.cxx | 22 |
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); |