hexmap-user Mailing List for The Hexmap Library for Hexagonal Grids
Status: Beta
Brought to you by:
rsteinke
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <rst...@w-...> - 2004-08-26 15:07:40
|
Here's an updated version of the demo code for the perl bindings. This takes into account one change in the perl version of the API. It also has the images directly in the code. I've also attached a utility script for converting xpm images to perl structures. The perl module API can now be regarded as stable. It basically mimics the C API, with a few exceptions, so you should be able to mostly follow the C documentation. The major exception is HexList, which is a linked list in C, but is represented in the perl modules as a tied hash (keyed on depth). If you have any questions, or bug reports, or whatever, please let me know. Ron Steinke |
|
From: <rst...@w-...> - 2004-07-27 07:27:49
|
The perl bindings are now in CVS, for both the base library and the gtk display implementation. I've attached a perl version of the standard demo program to this mail. You'll need the xpms that are in the tarball with the C versions of the demo, but this otherwise works with what's in CVS as-is. The perl bindings need more polish, but what's been committed at this point should be enough for people to fool around with. Ron Steinke |
|
From: <rst...@w-...> - 2004-07-09 15:30:21
|
> From: Bruno Boettcher <bb...@ad...> > > On Thu, Jun 10, 2004 at 04:44:58PM -0700, rst...@w-... wrote: > > You could probably persuade me to put some work into this, too. Since you > great news :D > > > seem to be interested in the gtk bindings, you'll first need a perl wrapper > > for gtk. I'm guessing you have one in mind already. Once you have that, it's > > pretty trivial to wrap 80-90% of the hexmap code, since it uses the same > > object system as gtk. > so told me the gtk2-perl guys, alas this doesn't and by far looks as > simple as both parties seem to imply this :D at least to me :D > > i am using > http://gtk2-perl.sourceforge.net/doc/binding_howto.pod.html as a > base to try the adaptation... Just to let you know I haven't forgotten this... I've now figured out how the code autogeneration in gtk2-perl works, and I'm about 80% through the easy 80-90% of the wrapper. I hope to get the perl wrapper at least nominally complete and into CVS soon. Ron |
|
From: Bruno B. <bb...@ad...> - 2004-06-14 13:44:41
|
On Thu, Jun 10, 2004 at 04:44:58PM -0700, rst...@w-... wrote: > You could probably persuade me to put some work into this, too. Since you great news :D > seem to be interested in the gtk bindings, you'll first need a perl wrapp= er > for gtk. I'm guessing you have one in mind already. Once you have that, i= t's > pretty trivial to wrap 80-90% of the hexmap code, since it uses the same > object system as gtk. so told me the gtk2-perl guys, alas this doesn't and by far looks as simple as both parties seem to imply this :D at least to me :D i am using http://gtk2-perl.sourceforge.net/doc/binding_howto.pod.html as a base to try the adaptation... > Looks like it isn't finding the header files. You need to use a command l= ine like >=20 > gcc test-gtk.c `pkg-config hexmap-gtk --cflags --libs` hmm that was the one i tryed, nevertheless, i tryed that pkg-config command alone and found myself the solution: PKG_CONFIG_PATH=3D$PKG_CONFIG_PATH:~/test/hexmap-0.3.1 make=20 solved the problem, seems the make install of the hexmap stuff didn't update the search paths on my machine.... ok :D at least the test case works now :D > These are just three image files you're missing. They're in the file >=20 > http://hexmap.sourceforge.net/hex_test.tar.gz had that one, but it comes without readme etc :D so i copyed over the .c into the hexmap distro as it didn't work there, was too stupid to take a closer look to the compiler call :D > This file also has a makefile, to make building the sample code easier. my problem would have been pointed out fast if you add the line=20 @RETURN=3D`pkg-config hexmap-gtk --cflags --libs` before=20 gcc -O2 -g -Wall test-gtk.c etc... cause this makes the make-call fail on the error of pkg-config, just an idea --=20 ciao bboett =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D bb...@ad... http://inforezo.u-strasbg.fr/~bboett =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |
|
From: <bb...@bb...> - 2004-06-10 14:25:52
|
Hello!
i am on the process of writing a game related utility and stumbled in aw
over your project: its exactly what i need...
only: i am programming in perl, there don't seem to be some perl
bindings lying around, so it seems that my little person will need to
dive into this....
only... the last time i touched C was uhm.... 20 years ago....
now i tryed to validate the build by compiling and trying the test case,
but....:
test-gtk.c:1:21: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden
test-gtk.c:2:28: gdk/gdkkeysyms.h: Datei oder Verzeichnis nicht gefunden
test-gtk.c:3:20: hexmap.h: Datei oder Verzeichnis nicht gefunden
test-gtk.c:4:28: hexdisplay-gtk.h: Datei oder Verzeichnis nicht gefunden
test-gtk.c:5:26: xpms/smile.xpm: Datei oder Verzeichnis nicht gefunden
test-gtk.c:6:27: xpms/waves1.xpm: Datei oder Verzeichnis nicht gefunden
test-gtk.c:7:27: xpms/waves2.xpm: Datei oder Verzeichnis nicht gefunden
test-gtk.c:9: error: Fehler beim Parsen before '*' token
test-gtk.c:11: error: Fehler beim Parsen before '*' token
test-gtk.c:11: Warnung: type defaults to `int' in declaration of `create_=
mainwin'
test-gtk.c:11: Warnung: data definition has no type or storage class
test-gtk.c:12: error: Fehler beim Parsen before '*' token
test-gtk.c:12: error: Fehler beim Parsen before '*' token
test-gtk.c:12: Warnung: type defaults to `int' in declaration of `setup_t=
est_hex_display'
test-gtk.c:12: Warnung: data definition has no type or storage class
test-gtk.c:13: error: Fehler beim Parsen before "got_a_keypress"
test-gtk.c:13: error: Fehler beim Parsen before '*' token
test-gtk.c:15: Warnung: type defaults to `int' in declaration of `got_a_k=
eypress'
test-gtk.c:15: Warnung: data definition has no type or storage class
test-gtk.c:16: error: Fehler beim Parsen before '*' token
test-gtk.c: In Funktion =BBmain=AB:
test-gtk.c:21: error: `GtkWidget' undeclared (first use in this function)
test-gtk.c:21: error: (Each undeclared identifier is reported only once
test-gtk.c:21: error: for each function it appears in.)
test-gtk.c:21: error: `window' undeclared (first use in this function)
test-gtk.c:21: error: `scrolled_window' undeclared (first use in this fun=
ction)
test-gtk.c:21: error: `display' undeclared (first use in this function)
test-gtk.c:21: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:21: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:22: error: `HexWalker' undeclared (first use in this function)
test-gtk.c:22: error: `walker' undeclared (first use in this function)
test-gtk.c:24: Warnung: implicit declaration of function `gtk_init'
test-gtk.c:27: Warnung: implicit declaration of function `gtk_window_set_=
default_size'
test-gtk.c:27: Warnung: implicit declaration of function `GTK_WINDOW'
test-gtk.c:28: Warnung: implicit declaration of function `gtk_scrolled_wi=
ndow_new'
test-gtk.c:28: Warnung: implicit declaration of function `GTK_ADJUSTMENT'
test-gtk.c:28: Warnung: implicit declaration of function `gtk_adjustment_=
new'
test-gtk.c:30: Warnung: implicit declaration of function `gtk_container_a=
dd'
test-gtk.c:30: Warnung: implicit declaration of function `GTK_CONTAINER'
test-gtk.c:32: Warnung: implicit declaration of function `g_assert'
test-gtk.c:32: Warnung: implicit declaration of function `HEX_IS_DISPLAY_=
GTK'
test-gtk.c:33: Warnung: implicit declaration of function `g_object_ref'
test-gtk.c:35: Warnung: implicit declaration of function `g_object_unref'
test-gtk.c:37: Warnung: implicit declaration of function `gtk_widget_add_=
events'
test-gtk.c:37: error: `GDK_KEY_PRESS_MASK' undeclared (first use in this =
function)
test-gtk.c:38: Warnung: implicit declaration of function `gtk_signal_conn=
ect_full'
test-gtk.c:38: Warnung: implicit declaration of function `GTK_OBJECT'
test-gtk.c:39: error: `GtkSignalFunc' undeclared (first use in this funct=
ion)
test-gtk.c:39: error: Fehler beim Parsen before "got_a_keypress"
test-gtk.c:42: Warnung: implicit declaration of function `gtk_widget_show=
'
test-gtk.c:46: Warnung: implicit declaration of function `hex_display_gtk=
_center_hex'
test-gtk.c:46: Warnung: implicit declaration of function `HEX_DISPLAY_GTK=
'
test-gtk.c:48: Warnung: implicit declaration of function `gtk_main'
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:54: error: Fehler beim Parsen before '*' token
test-gtk.c: In Funktion =BBmainwin_destroy=AB:
test-gtk.c:57: Warnung: implicit declaration of function `gtk_main_quit'
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:60: error: Fehler beim Parsen before '*' token
test-gtk.c:62: Warnung: return type defaults to `int'
test-gtk.c: In Funktion =BBcreate_mainwin=AB:
test-gtk.c:63: error: `GtkWidget' undeclared (first use in this function)
test-gtk.c:63: error: `window' undeclared (first use in this function)
test-gtk.c:65: Warnung: implicit declaration of function `gtk_window_new'
test-gtk.c:65: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this=
function)
test-gtk.c:67: Warnung: implicit declaration of function `gtk_signal_conn=
ect'
test-gtk.c:68: Warnung: implicit declaration of function `GTK_SIGNAL_FUNC=
'
test-gtk.c:68: error: `NULL' undeclared (first use in this function)
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:73: error: Fehler beim Parsen before '*' token
test-gtk.c:74: error: Fehler beim Parsen before '*' token
test-gtk.c:75: Warnung: return type defaults to `int'
test-gtk.c: In Funktion =BBsetup_test_hex_display=AB:
test-gtk.c:76: error: `HexGrid' undeclared (first use in this function)
test-gtk.c:76: error: `grid' undeclared (first use in this function)
test-gtk.c:77: error: `GtkWidget' undeclared (first use in this function)
test-gtk.c:77: error: `disp' undeclared (first use in this function)
test-gtk.c:78: error: Syntaxfehler before "width"
test-gtk.c:79: error: `HexData' undeclared (first use in this function)
test-gtk.c:79: error: `background' undeclared (first use in this function=
)
test-gtk.c:79: error: `water' undeclared (first use in this function)
test-gtk.c:79: error: `light_forest' undeclared (first use in this functi=
on)
test-gtk.c:79: error: `heavy_forest' undeclared (first use in this functi=
on)
test-gtk.c:79: error: `swamp' undeclared (first use in this function)
test-gtk.c:79: error: `smile' undeclared (first use in this function)
test-gtk.c:80: error: `waves' undeclared (first use in this function)
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:80: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:81: error: `HexTile' undeclared (first use in this function)
test-gtk.c:81: error: `water_tile' undeclared (first use in this function=
)
test-gtk.c:81: error: `lt_for_tile' undeclared (first use in this functio=
n)
test-gtk.c:81: error: `hv_for_tile' undeclared (first use in this functio=
n)
test-gtk.c:81: error: `swamp_tile' undeclared (first use in this function=
)
test-gtk.c:81: error: `waves_tile' undeclared (first use in this function=
)
test-gtk.c:82: error: `next_tile' undeclared (first use in this function)
test-gtk.c:82: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:82: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:82: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:82: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:82: Warnung: left-hand operand of comma expression has no effe=
ct
test-gtk.c:83: error: Syntaxfehler before "map"
test-gtk.c:118: error: `gint' undeclared (first use in this function)
test-gtk.c:119: error: `HexColor' undeclared (first use in this function)
test-gtk.c:126: Warnung: implicit declaration of function `hex_data_new_f=
rom_color'
test-gtk.c:126: error: `blue' undeclared (first use in this function)
test-gtk.c:126: error: `hex_width' undeclared (first use in this function=
)
test-gtk.c:127: error: `lt_green' undeclared (first use in this function)
test-gtk.c:128: error: `dk_blue' undeclared (first use in this function)
test-gtk.c:129: error: `green' undeclared (first use in this function)
test-gtk.c:130: error: `dk_green' undeclared (first use in this function)
test-gtk.c:132: Warnung: implicit declaration of function `hex_data_new_f=
rom_xpm_d'
test-gtk.c:132: error: Fehler beim Parsen before "gchar"
test-gtk.c:133: error: Fehler beim Parsen before "gchar"
test-gtk.c:134: Warnung: implicit declaration of function `hex_data_new_e=
mpty_cached'
test-gtk.c:136: Warnung: implicit declaration of function `HEX_GRID'
test-gtk.c:136: Warnung: implicit declaration of function `hex_grid_new'
test-gtk.c:136: error: `black' undeclared (first use in this function)
test-gtk.c:136: error: `width' undeclared (first use in this function)
test-gtk.c:136: error: `height' undeclared (first use in this function)
test-gtk.c:138: Warnung: implicit declaration of function `HEX_TILE'
test-gtk.c:138: Warnung: implicit declaration of function `hex_obstacle_n=
ew'
test-gtk.c:138: error: `HEX_DIRECTION_SE' undeclared (first use in this f=
unction)
test-gtk.c:139: Warnung: implicit declaration of function `hex_tile_new'
test-gtk.c:143: Warnung: implicit declaration of function `hex_animation_=
new'
test-gtk.c:143: error: `TRUE' undeclared (first use in this function)
test-gtk.c:145: Warnung: implicit declaration of function `hex_data_unref=
'
test-gtk.c:155: error: `x' undeclared (first use in this function)
test-gtk.c:156: error: `y' undeclared (first use in this function)
test-gtk.c:157: error: `map' undeclared (first use in this function)
test-gtk.c:162: Warnung: implicit declaration of function `hex_grid_set_t=
ile'
test-gtk.c:174: Warnung: implicit declaration of function `g_warning'
test-gtk.c:202: Warnung: implicit declaration of function `hex_grid_set_s=
ize'
test-gtk.c:207: error: Fehler beim Parsen before "gchar"
test-gtk.c:209: error: `walker' undeclared (first use in this function)
test-gtk.c:209: Warnung: implicit declaration of function `hex_walker_new=
'
test-gtk.c:210: Warnung: implicit declaration of function `hex_walker_set=
_position'
test-gtk.c:212: Warnung: implicit declaration of function `hex_walker_con=
nect_grid'
test-gtk.c:218: Warnung: implicit declaration of function `hex_display_gt=
k_new'
test-gtk.c:220: Warnung: implicit declaration of function `g_signal_conne=
ct_data'
test-gtk.c:220: error: `GCallback' undeclared (first use in this function=
)
test-gtk.c:220: error: Fehler beim Parsen before "walker_moved"
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:229: error: Fehler beim Parsen before "got_a_keypress"
test-gtk.c:229: error: Fehler beim Parsen before '*' token
test-gtk.c:232: Warnung: return type defaults to `int'
test-gtk.c: In Funktion =BBgot_a_keypress=AB:
test-gtk.c:233: error: `HexDirection' undeclared (first use in this funct=
ion)
test-gtk.c:233: error: Fehler beim Parsen before "direction"
test-gtk.c:235: error: `event' undeclared (first use in this function)
test-gtk.c:236: error: `GDK_KP_7' undeclared (first use in this function)
test-gtk.c:237: error: `GDK_KP_Home' undeclared (first use in this functi=
on)
test-gtk.c:238: error: `direction' undeclared (first use in this function=
)
test-gtk.c:238: error: `HEX_DIRECTION_NW' undeclared (first use in this f=
unction)
test-gtk.c:240: error: `GDK_KP_8' undeclared (first use in this function)
test-gtk.c:241: error: `GDK_KP_Up' undeclared (first use in this function=
)
test-gtk.c:242: error: `HEX_DIRECTION_N' undeclared (first use in this fu=
nction)
test-gtk.c:244: error: `GDK_KP_9' undeclared (first use in this function)
test-gtk.c:245: error: `GDK_KP_Page_Up' undeclared (first use in this fun=
ction)
test-gtk.c:246: error: `HEX_DIRECTION_NE' undeclared (first use in this f=
unction)
test-gtk.c:248: error: `GDK_KP_1' undeclared (first use in this function)
test-gtk.c:249: error: `GDK_KP_End' undeclared (first use in this functio=
n)
test-gtk.c:250: error: `HEX_DIRECTION_SW' undeclared (first use in this f=
unction)
test-gtk.c:252: error: `GDK_KP_2' undeclared (first use in this function)
test-gtk.c:253: error: `GDK_KP_Down' undeclared (first use in this functi=
on)
test-gtk.c:254: error: `HEX_DIRECTION_S' undeclared (first use in this fu=
nction)
test-gtk.c:256: error: `GDK_KP_3' undeclared (first use in this function)
test-gtk.c:257: error: `GDK_KP_Page_Down' undeclared (first use in this f=
unction)
test-gtk.c:258: error: `HEX_DIRECTION_SE' undeclared (first use in this f=
unction)
test-gtk.c:260: error: `GDK_Escape' undeclared (first use in this functio=
n)
test-gtk.c:262: error: `TRUE' undeclared (first use in this function)
test-gtk.c:264: error: `FALSE' undeclared (first use in this function)
test-gtk.c:267: Warnung: implicit declaration of function `hex_walker_mov=
e'
test-gtk.c:267: error: `walker' undeclared (first use in this function)
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:273: error: Fehler beim Parsen before '*' token
test-gtk.c: In Funktion =BBwalker_moved=AB:
test-gtk.c:276: error: `disp' undeclared (first use in this function)
test-gtk.c:276: error: `walker' undeclared (first use in this function)
test-gtk.c: Auf h=F6chster Ebene:
test-gtk.c:275: Warnung: `walker_moved' defined but not used
don't really know how to solve these...
am using hexmap-0.3.1 on a linux debian-unstable system if that
matters...
--=20
ciao bboett
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
bb...@ad...
http://inforezo.u-strasbg.fr/~bboett
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|
|
From: Benno L. <ben...@id...> - 2004-05-03 07:16:01
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_de.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: <rst...@w-...> - 2002-10-04 15:59:49
|
The version 0.3.0 tarball has just been uploaded to the mirrors. Now featuring both Gtk+ and SDL backends. Ron |
|
From: <rst...@w-...> - 2002-10-03 19:52:24
|
The new CVS update provides support for multiple backends, with implementations for gtk+-2.0 (previously supported) and SDL-1.2. There's still something wrong with alpha channel support in the SDL backend, and the documentation needs work, but otherwise it's fully functional. Once these issues are resolved, I'll roll a 0.3 tarball. Ron Steinke |
|
From: <rst...@w-...> - 2002-02-12 17:09:42
|
Okay, 0.2.2 is finally out. This fixes the bug Jeff reported, along with a few other things. The versions of the test code and documentation on the website have also been updated. Ron |
|
From: <rst...@w-...> - 2002-01-29 22:37:12
|
From: "Jeff Bulley" <cor...@ho...>
>
> Thanks for the quick response!
>
> I hope you can help me with a problem I've run into with test.c
> (CPPPFLAGS=glib gtk atk & pango includes)
>
> [jbulley@coreolyn hex_test]# g++ -g -Wall $CPPFLAGS test.c -o test
> test.c: In function `GtkWidget *setup_test_hex_display (HexWalker **)':
> test.c:116: initializer-string for array of chars is too long
> ..... (repeats for each string line)
> test.c:220: cannot convert `int' to `GConnectFlags' for argument `6' to
> `g_signal_connect_data (void *, const gchar *, void (*) (), void *,
> void (*) (void *, GClosure *), GConnectFlags)'
>
> I was able to eliminate the problem with 116 by removing one character from
> each string, however I have no clue what to do with line 220, and was
> wondering if there is an easy fix.
Instead of removing a character, change the first line in the declaration to
const gchar map[33][50] = {
which allows space for the terminating '\0'. Apparently gcc is more forgiving
of excess data than your compiler (I was even compiling with -Wall and it says
nothing), and since the code doesn't use the fact that the strings are null
terminated, it worked fine.
> Line 220:
>
> g_signal_connect_data(*walker, "moved", (GCallback) walker_moved,
> disp, NULL, 0);
Just do:
g_signal_connect_data(*walker, "moved", (GCallback) walker_moved,
disp, NULL, (GConnectFlags) 0);
It's just a cast from an int to an enum (which holds a set of bitflags).
> I'm more of a Java & Perl person than c/c++ but I can work most problems
> out, but I haven't worked with gtk+ till now. Of the gtk books out there
> are there any that stand out in your opinion?
Sounds like you're compiling this in C++ mode, which tends to be stricter
than C about typecasts. Let me know of any other warnings you get, I'll clean
them up.
Ron
|
|
From: Jeff B. <cor...@ho...> - 2002-01-29 21:01:59
|
Thanks for the quick response!
I hope you can help me with a problem I've run into with test.c
(CPPPFLAGS=glib gtk atk & pango includes)
[jbulley@coreolyn hex_test]# g++ -g -Wall $CPPFLAGS test.c -o test
test.c: In function `GtkWidget *setup_test_hex_display (HexWalker **)':
test.c:116: initializer-string for array of chars is too long
..... (repeats for each string line)
test.c:220: cannot convert `int' to `GConnectFlags' for argument `6' to
`g_signal_connect_data (void *, const gchar *, void (*) (), void *,
void (*) (void *, GClosure *), GConnectFlags)'
I was able to eliminate the problem with 116 by removing one character from
each string, however I have no clue what to do with line 220, and was
wondering if there is an easy fix.
Line 220:
g_signal_connect_data(*walker, "moved", (GCallback) walker_moved,
disp, NULL, 0);
I'm more of a Java & Perl person than c/c++ but I can work most problems
out, but I haven't worked with gtk+ till now. Of the gtk books out there
are there any that stand out in your opinion?
Thanks in advance,
Jeff
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|
|
From: <rst...@w-...> - 2002-01-29 19:05:35
|
From: "Jeff Bulley" <cor...@ho...> > > Hello, > > I downloaded and compiled (after much wailing and gnashing of teeth) hexmap. > All the problems stemmed from the need to update libraries on to a fresh > build of Mandrake 8.0. Anyway I've finally achieved a successful build. I > noticed that the homepage http://hexmap.sourceforge.net/ has a hextest.gif. > Is the source available to the program that generated it? Am not seeing it > in the generated code? > > My interest in hexmap is that it may assist me in my endevour to Web Base my > old Avalon Hill bookshelf games. Thanks for the interest. The most difficult part of using hexmap is probably that it uses the devel version of gtk+. They're in feature freeze, though, so hopefully they'll go to 2.0 shortly. If you have any comments about the library, or feature requests, I'd be happy to hear them. Ron |
|
From: Jeff B. <cor...@ho...> - 2002-01-29 18:42:15
|
Naturally after posting this I saw right on the home page where the test code is. My bad :) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
|
From: Jeff B. <cor...@ho...> - 2002-01-29 18:26:50
|
Hello, I downloaded and compiled (after much wailing and gnashing of teeth) hexmap. All the problems stemmed from the need to update libraries on to a fresh build of Mandrake 8.0. Anyway I've finally achieved a successful build. I noticed that the homepage http://hexmap.sourceforge.net/ has a hextest.gif. Is the source available to the program that generated it? Am not seeing it in the generated code? My interest in hexmap is that it may assist me in my endevour to Web Base my old Avalon Hill bookshelf games. Thanks for making your source available, Jeff Bulley aka: Coreolyn _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
|
From: <rst...@w-...> - 2001-11-05 15:54:45
|
This is a combined release announcement for 0.2.1 and test to make sure the mailing lists are working. You can get the release tarball at hexmap.sourceforge.net as (will be) usual. Ron |