]> Pileus Git - ~andy/gtk/blob - README.nanox
Remove all references to offscreen flag which was no longer used.
[~andy/gtk] / README.nanox
1 Gtk port to nano-X
2
3 STATUS
4
5 Once upon a time I got a few apps working, then started merging
6 the new features added by Owen (32 bit sizes for windows and buffering).
7 Since then I haven't found the time to work on it:-/
8
9
10 TODO
11
12 Finish internal window manager abstraction or add proper support in nano-X.
13 Fix event polling.
14 Implement GdkImage, GdkRgb stuff.
15 Put generic region code in generic gdk and/or use the region code from nano-X.
16 Fix ugly automake stuff for make dist.
17
18 TODO in nano-X
19
20 We need to be able to clip and change the background of windows at runtime
21 for apps to not look so ugly!
22 Fonts: wait for better nano-X font implementation.
23 Properties on windows.
24
25
26 If you want to work on this port or get additional informnation, get in 
27 touch with me.
28 To get the beast to compile you also need to apply the patch below
29 (any auto* wizard here?): the issue of having two gtk libraries in the
30 system needs to be addressed too, maybe use libgtk-x11-1.4.so and 
31 libgtk-nanox-1.4.so ...
32
33 Paolo Molaro
34 lupus@linuxcare.com
35
36
37 Index: acconfig.h
38 ===================================================================
39 RCS file: /cvs/gnome/gtk+/acconfig.h,v
40 retrieving revision 1.16
41 diff -u -r1.16 acconfig.h
42 --- acconfig.h  1999/03/20 00:52:29     1.16
43 +++ acconfig.h  2000/05/06 11:52:38
44 @@ -49,6 +49,8 @@
45  /* Most machines will be happy with int or void.  IRIX requires '...' */
46  #undef SIGNAL_ARG_TYPE
47  
48 +#undef USE_NANOX
49 +
50  /* #undef PACKAGE */
51  /* #undef VERSION */
52  
53 Index: configure.in
54 ===================================================================
55 RCS file: /cvs/gnome/gtk+/configure.in,v
56 retrieving revision 1.142
57 diff -u -r1.142 configure.in
58 --- configure.in        2000/05/04 00:29:46     1.142
59 +++ configure.in        2000/05/06 11:52:38
60 @@ -99,6 +99,8 @@
61  AC_ARG_WITH(locale, [  --with-locale=LOCALE    locale name you want to use ])
62  
63  AC_ARG_WITH(xinput, [  --with-xinput=[no/gxi/xfree] support XInput ])
64 +AC_ARG_ENABLE(nanox, [  --enable-nanox            use nano-X instead of X11 [default=no]],
65 +                       , enable_nanox="no")
66  
67  if test "x$enable_debug" = "xyes"; then
68    test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
69 @@ -322,6 +324,8 @@
70  saved_cflags="$CFLAGS"
71  saved_ldflags="$LDFLAGS"
72  
73 +if text "x$enable_nanox" = "xno"; then
74 +
75  CFLAGS="$CFLAGS $X_CFLAGS"
76  LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
77  
78 @@ -465,6 +469,13 @@
79    GTK_LOCALE_FLAGS="-DX_LOCALE"
80  fi
81  
82 +else
83 +AC_CHECK_LIB(nano-X, GrOpen)
84 +LIBS="-lnano-X $LIBS"
85 + AC_DEFINE(USE_NANOX)
86 +AM_CONDITIONAL(USE_NANOX, test x$enable_nanox = xyes)
87 +fi # if enable_nanox
88 +
89  # Checks for header files.
90  AC_HEADER_STDC
91  
92 @@ -602,8 +613,13 @@
93  esac
94  ],[
95  # Currently we always use X11 on those systems where we run configure...
96 +if test x$enable_nanox = xno; then
97  gdk_windowing='
98  #define GDK_WINDOWING_X11'
99 +else
100 +gdk_windowing='
101 +#define GDK_WINDOWING_NANOX'
102 +fi
103  if test x$gdk_wchar_h = xyes; then
104    gdk_wc='
105  #define GDK_HAVE_WCHAR_H 1'
106 @@ -629,6 +645,7 @@
107  docs/Makefile
108  gdk/Makefile
109  gdk/x11/Makefile
110 +gdk/nanox/Makefile
111  gdk/win32/Makefile
112  gtk/Makefile
113  gtk/gtkfeatures.h
114 Index: gdk/Makefile.am
115 ===================================================================
116 RCS file: /cvs/gnome/gtk+/gdk/Makefile.am,v
117 retrieving revision 1.41
118 diff -u -r1.41 Makefile.am
119 --- gdk/Makefile.am     2000/04/05 04:11:10     1.41
120 +++ gdk/Makefile.am     2000/05/06 11:52:38
121 @@ -1,6 +1,10 @@
122  ## Makefile.am for gtk+/gdk
123  
124 +if USE_NANOX
125 +SUBDIRS=win32 nanox
126 +else
127  SUBDIRS=x11 win32
128 +endif
129  
130  EXTRA_DIST =   \
131         gdkconfig.h.win32 \
132 @@ -36,8 +40,13 @@
133         -lm             \
134  @STRIP_END@
135  
136 +if USE_NANOX
137  libgdk_la_LIBADD = \
138 +       nanox/libgdk-nanox.la   
139 +else
140 +libgdk_la_LIBADD = \
141         x11/libgdk-x11.la       
142 +endif
143  
144  #
145  # setup source file variables
146 @@ -138,3 +147,8 @@
147         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
148           echo $$p; \
149         done
150 +
151 +noinst_PROGRAMS = simple
152 +simple_DEPENDENCIES = libgdk.la simple.c
153 +simple_LDADD = libgdk.la
154 +