Re: Interfacing with c and platform dependent sizes

2011-02-26 Thread Mike Wey
ng c_ulong; } } else { alias int c_long; alias uint c_ulong; } To read more about data models: http://en.wikipedia.org/wiki/64-bit#Specific_C-language_data_models You can also import core.stdc.config witch defines both c_long and c_ulong. -- Mike Wey

Re: Interfacing with c and platform dependent sizes

2011-02-26 Thread Mike Wey
On 02/26/2011 05:58 PM, simendsjo wrote: On 26.02.2011 17:06, Mike Wey wrote: On 02/26/2011 11:49 AM, Jacob Carlborg wrote: On 2011-02-26 01:28, simendsjo wrote: C is not my strong side, so I'm having some problems wrapping some code. I found a couple of sources on this: 1)

Re: Can't figure out segfault

2011-03-02 Thread Mike Wey
is posible that dlsym is returning the address of the symbols in your execuable. Thunderbird is having some problems with your attachment so i'm not able to test, but renaming the functions should do the trick. -- Mike Wey

Re: How to get the dang thing to work (Was: Linux: How to statically link against system libs?)

2011-04-28 Thread Mike Wey
does the server support multilib? -- Mike Wey

Re: private template members

2011-05-01 Thread Mike Wey
http://d.puremagic.com/issues/show_bug.cgi?id=2775 -- Mike Wey

Re: GTKD doesn't work too

2011-06-09 Thread Mike Wey
On 06/09/2011 07:43 PM, Fabian wrote: rd to your answers and I hope you can help me. Greetings Fabian Could you also post the verbose output? -- Mike Wey

Re: dummy question : runtime type testing...

2011-06-18 Thread Mike Wey
return ( typeid(T) is ti ); } bool isTypeOf(TypeInfo ti1, TypeInfo ti2) { return ( ti1 is ti2 ); } -- Mike Wey

Re: Fuzzy string matching?

2011-07-16 Thread Mike Wey
c.algorithm.levenshteinDistance to check how much the two names differ. -- Mike Wey

Re: gtkD doesn't compile on windows

2011-07-19 Thread Mike Wey
;rdmd -v HelloWorld.d Failed: dmd -v -v -o- "HelloWorld.d" -I"." >HelloWorld.d.deps The dmd command works, so it's rdmd that fails. -- Mike Wey

Re: gtkD doesn't compile on windows

2011-07-19 Thread Mike Wey
On 07/19/2011 09:17 PM, simendsjo wrote: On 19.07.2011 20:01, Mike Wey wrote: On 07/19/2011 03:21 PM, simendsjo wrote: On 19.07.2011 15:12, Trass3r wrote: Command c:\d\dsss-0.78-x86-windows\bin\rebuild.exe returned with code 1, aborting. Error: Command failed, aborting. Doesn't dsss

Re: std.datetime impenetrable

2011-09-15 Thread Mike Wey
settings - could be the beer of course. To get the default paper size with gtkD you could use: new PaperSize(cast(string)null); This creates an PaperSize object representing an US Letter if the locale is set to Canada, US or Mexico, and A4 otherwise. -- Mike Wey

Re: Is there a profiler for D2?

2011-09-20 Thread Mike Wey
On 09/20/2011 08:46 AM, Jonathan M Davis wrote: I don't believe that it doesn't currently work with 64-bit binaries though, You could use oprofile in that case. http://oprofile.sourceforge.net/ -- Mike Wey

Re: Correct way to map C #define to version

2012-10-29 Thread Mike Wey
magic.com/issues/ R You could mixin the entire enum, like this: https://github.com/MikeWey/DMagick/blob/master/dmagick/c/distort.d#L239 -- Mike Wey

Re: Getting memory size of class

2012-12-05 Thread Mike Wey
).classinfo.init.sizeof, (myclass!double).classinfo.init.sizeof); from http://forum.dlang.org/thread/dp9hct$nuf$1...@digitaldaemon.com So how does one get the actual memory usage of a class? (myclass!int).classinfo.init.length At least that is what druntime is using. -- Mike Wey

Re: calling fgets()

2012-12-23 Thread Mike Wey
f you declare an char array you could pass it's pointer and length as the first two arguments. char[] buff = new char[1024]; fgets(buff.ptr, buff.length, someStream); buff = buff[0 .. strlen(buff)]; -- Mike Wey

Re: GtkD - missing DLLs in Gtk win32 runtime

2012-12-29 Thread Mike Wey
include the core Gtk libraries. It should be possible to add the four you already found to the installer. but for the other two libgtkglext/libgdkglext there probably aren't any binaries available. They are part of the gtkglext port to Gtk3 which can be found here: https://github.com/tdz/gtkglext -- Mike Wey

Re: Assembly - 64-bit registers supported?

2013-01-20 Thread Mike Wey
s\v7.0\ LINKCMD=c:\dmd\bin\link.exe LINKCMD64=%VCINSTALLDIR%bin\amd64\link.exe VCINSTALLDIR and WindowsSdkDir may be different depending on the version of the installed windows SDK. -- Mike Wey

Re: Assembly - 64-bit registers supported?

2013-01-24 Thread Mike Wey
the libs supplied be dmd for win32 because of it. -- Mike Wey

Re: gtkD problem

2013-01-28 Thread Mike Wey
d you tell us exactly which installer you used? -- Mike Wey

Re: gtkD problem

2013-01-28 Thread Mike Wey
On 01/28/2013 08:43 PM, SaltySugar wrote: On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote: On 01/28/2013 03:08 PM, SaltySugar wrote: On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote: On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote: Al 28/01/13 13:43, En

Re: gtkD problem

2013-01-28 Thread Mike Wey
On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote: There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash, you can either add it to the GTK_BASEPATH, or remove the GTK_BASEPATH environment variable completely. Fixed in git:

Re: gtk on the other machine

2013-01-29 Thread Mike Wey
n you previous question. -- Mike Wey

Re: GtkD button size

2013-02-04 Thread Mike Wey
hus properly handles the size request. A Grid or Table might also apply depending on the complete layout. -- Mike Wey

Re: GtkD button size

2013-02-05 Thread Mike Wey
} } void main(string[] args) { Main.init(args); new Application(); Main.run(); } It looks like this: http://i45.tinypic.com/msivb4.png -- Mike Wey

Re: GtkD button size

2013-02-05 Thread Mike Wey
, true, 0); Changing packStart to add in the small example i posted it appears to stay the same. -- Mike Wey

Re: gui libs

2013-02-28 Thread Mike Wey
On 02/28/2013 09:38 PM, rho wrote: do all those work with x64? are they complete? are all tools to build the libs on board the standard D distro? GtkD will work with x64. -- Mike Wey

Re: Tid between classes

2013-03-08 Thread Mike Wey
back from the owned gl thread. But I need the gl Tid to send data through to the gl thread. Is there a another way to access the gl thread's Tid from within the main thread? GtkD still supports openGL using gtkglext. -- Mike Wey

Re: Trying to implement a reference counting mechanism

2013-03-20 Thread Mike Wey
s off by one, i think you need to set it to 1 in the refCountedObj function, or check for refCount < 0 before freeing the value. -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-03-30 Thread Mike Wey
perly, you could try manualy generating the GSettings schemas by running: C:\Program Files\Gtk-Runtime\bin\glib-compile-schemas.exe C:\Program Files\Gtk-Runtime\share\glib-2.0\schemas\ The schemas directory should contain a bunch of xml files that will need to be compiled. The paths may vary depemding on where the Gtk runtime was installed. -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-03-30 Thread Mike Wey
x27;/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to Anything I should be worried about? Thanks again, Josh That are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ? -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-03-31 Thread Mike Wey
On 03/30/2013 05:42 PM, Josh wrote: On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote: On 03/30/2013 03:49 PM, Josh wrote: Sorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema

Re: GtkD "No GSettings schemas installed"

2013-04-02 Thread Mike Wey
On 04/02/2013 02:38 PM, Josh wrote: On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote: On 03/30/2013 05:42 PM, Josh wrote: On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote: On 03/30/2013 03:49 PM, Josh wrote: Sorry, I misread, I thought the xml files were the compiled bits

Re: does GtkD (win7) support opengl?

2013-04-02 Thread Mike Wey
ncluded in the Gtk-runtime installer, and as far as i know there aren't any binaries readily available for windows. And i haven't yet found the time to try and build it myself. -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-04-03 Thread Mike Wey
On 04/03/2013 05:38 AM, Josh wrote: On Tuesday, 2 April 2013 at 20:50:16 UTC, Mike Wey wrote: On 04/02/2013 02:38 PM, Josh wrote: On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote: On 03/30/2013 05:42 PM, Josh wrote: On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote: On 03

Re: does GtkD (win7) support opengl?

2013-04-03 Thread Mike Wey
On 04/03/2013 03:23 AM, Alexandr Druzhinin wrote: 03.04.2013 4:13, Mike Wey пишет: GtkD relies on gtkglext-3 for it's openGL support it can be found here: https://github.com/tdz/gtkglext It currently isn't included in the Gtk-runtime installer, and as far as i know there aren'

Re: gtkD problem

2013-04-04 Thread Mike Wey
cated in the dynamic link librarylibglib-2.0.0-dll." I'm only having difficulties on Windows. It works just fine on Linux. It looks like you have more than one version of the Gtk runtime on your system, and this is causing some problems. because it's finding the older version. -- Mike Wey

Re: does GtkD (win7) support opengl?

2013-04-09 Thread Mike Wey
On 04/02/2013 11:13 PM, Mike Wey wrote: On 04/01/2013 04:58 PM, Alexandr Druzhinin wrote: I built GtkD following instructions from https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows. Then I tried to build demo from demos/gl/simple/simplegl.d and failed with undefined symbols

Re: GtkD "No GSettings schemas installed"

2013-04-10 Thread Mike Wey
gs as before. Any more ideas? Thanks, Josh Try running the following commands in the windows console: gsettings list-schemas gsettings list-relocatable-schemas They should output a list of installed schemas. -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-04-14 Thread Mike Wey
On 04/13/2013 07:00 AM, Josh wrote: On Wednesday, 10 April 2013 at 20:17:36 UTC, Mike Wey wrote: On 04/10/2013 03:20 PM, Josh wrote: After trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My pr

Re: GtkD "No GSettings schemas installed"

2013-04-15 Thread Mike Wey
On 04/15/2013 05:45 PM, Josh wrote: On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote: So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't giv

Re: GtkD DLL issues

2013-04-23 Thread Mike Wey
e you compiling gtkD and the app as 32 or 64 bit? Did you install the matching Gtk+ runtime 32 or 64 bits? I looks like its pikking up a different version of a dll used by Gtk+ and apperantly the Intel WiFi tools. But think it should loadthe right one if ist just 32 vs 64 bits. -- Mike Wey

Re: GtkD DLL issues

2013-04-23 Thread Mike Wey
On 04/23/2013 10:26 PM, Jeff wrote: On Tuesday, 23 April 2013 at 20:24:33 UTC, Jeff wrote: On Tuesday, 23 April 2013 at 20:21:51 UTC, Mike Wey wrote: On 04/23/2013 09:00 PM, Jeff wrote: Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it

Re: does GtkD (win7) support opengl?

2013-04-23 Thread Mike Wey
On 04/23/2013 10:59 AM, Alexandr Druzhinin wrote: 10.04.2013 3:48, Mike Wey пишет: I was able to build gtkglext3 on windows, and i've uploaded a zip file containing the dll's. http://gtkd.org/Downloads/GtkDGL.zip I've also included the static libs for GtkDGL and for 32bits win

Re: does GtkD (win7) support opengl?

2013-04-25 Thread Mike Wey
On 04/25/2013 02:09 PM, Alexandr Druzhinin wrote: 24.04.2013 4:02, Mike Wey пишет: I don't think it's the line number. I think i may have this error on my machine once, but not since then. And i can't reproduce it. Could I ask you to build SimpleGL demo, check it works and se

Re: does GtkD (win7) support opengl?

2013-04-26 Thread Mike Wey
On 04/26/2013 05:16 AM, Alexandr Druzhinin wrote: 26.04.2013 3:45, Mike Wey пишет: http://gtkd.org/Downloads/SimpleGL.zip After updating dmd the demo no longer draws the triangle, i still need to figure out why. Link is broken Should be working now. -- Mike Wey

Re: does GtkD (win7) support opengl?

2013-04-28 Thread Mike Wey
On 04/28/2013 01:04 PM, Alexandr Druzhinin wrote: developers version of GtkD solves my problem. but GtkD 2.1.1 from download page doesn't. May be remove it from there to avoid such problems? Does it also draw the triangle properly for you? -- Mike Wey

Re: GtkD "No GSettings schemas installed"

2013-04-28 Thread Mike Wey
On 04/28/2013 04:32 PM, QAston wrote: On Monday, 15 April 2013 at 18:10:00 UTC, Mike Wey wrote: On 04/15/2013 05:45 PM, Josh wrote: On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote: So it looks like the shemas are installed properly. You could try running the gsettings app from a

Re: does GtkD (win7) support opengl?

2013-04-28 Thread Mike Wey
On 04/28/2013 04:08 PM, Alexandr Druzhinin wrote: 28.04.2013 20:26, Mike Wey пишет: On 04/28/2013 01:04 PM, Alexandr Druzhinin wrote: developers version of GtkD solves my problem. but GtkD 2.1.1 from download page doesn't. May be remove it from there to avoid such problems? Does it also

Re: does GtkD (win7) support opengl?

2013-04-28 Thread Mike Wey
On 04/28/2013 07:33 PM, Mike Wey wrote: On 04/28/2013 04:08 PM, Alexandr Druzhinin wrote: 28.04.2013 20:26, Mike Wey пишет: On 04/28/2013 01:04 PM, Alexandr Druzhinin wrote: developers version of GtkD solves my problem. but GtkD 2.1.1 from download page doesn't. May be remove it from the

Re: [GtkD] How to use Glade?

2013-05-02 Thread Mike Wey
or example, if somebody would upload some example of Gtk application, that built with glade and has several typical widgets and signal handlers - it may help very much. There is an small example distributed with GtkD: https://github.com/gtkd-developers/GtkD/blob/master/demos/builder/builderTest.

Re: [GtkD] How to use Glade?

2013-05-02 Thread Mike Wey
On 05/02/2013 08:21 PM, Carlos wrote: On Thursday, 2 May 2013 at 17:43:28 UTC, Mike Wey wrote: On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote: How to use GtkD with Glade? Is some tutorial available? I spent some time trying to use Glade to build non-trivial application, but I do it very

Re: [GtkD] How to use Glade?

2013-05-02 Thread Mike Wey
t in the glade file it will print "No window?" and exit. -- Mike Wey

Re: [GtkD] How to use Glade?

2013-05-03 Thread Mike Wey
On 05/03/2013 03:00 AM, Alexandr Druzhinin wrote: 03.05.2013 0:43, Mike Wey пишет: On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote: How to use GtkD with Glade? Is some tutorial available? I spent some time trying to use Glade to build non-trivial application, but I do it very inproductive, so

Re: GtkD - Changing the default windows font

2013-05-03 Thread Mike Wey
On 05/03/2013 09:39 AM, Mike James wrote: Running on Windows 7, the default font is very thin and indistinct on my machine - is there a system setting to change the default font? regards, Mike. I don't know, i'll see if i can find out how to set it. -- Mike Wey

Re: [GtkD] How to connect to notify::active signal?

2013-05-03 Thread Mike Wey
mebody help with it? Are you referring to gtk.Switch ? -- Mike Wey

Re: [GtkD] How to connect to notify::active signal?

2013-05-04 Thread Mike Wey
On 05/04/2013 05:20 AM, Alexandr Druzhinin wrote: 04.05.2013 1:18, Mike Wey пишет: On 05/03/2013 06:30 PM, Alexandr Druzhinin wrote: I need to connect to "notify::active" signal for Switch widget to process changing of its state. The guides say I shouldn't use onActiv

Re: GtkD - Changing the default windows font

2013-05-04 Thread Mike Wey
On 05/03/2013 08:05 PM, Mike Wey wrote: On 05/03/2013 09:39 AM, Mike James wrote: Running on Windows 7, the default font is very thin and indistinct on my machine - is there a system setting to change the default font? regards, Mike. I don't know, i'll see if i can find out how

Re: GtkD HelloWorld app crashes with exception

2013-05-18 Thread Mike Wey
ut why it doesn't print the error message about not being able to find the Gtk3 dll. -- Mike Wey

Re: GtkD HelloWorld app crashes with exception

2013-05-18 Thread Mike Wey
On Saturday, 18 May 2013 at 18:54:50 UTC, Enjoys Math wrote: On Saturday, 18 May 2013 at 10:47:13 UTC, Mike Wey wrote: GtkD 2.x wraps Gtk+ 3.x so you will need the 3.8 runtime from: https://code.google.com/p/gtkd-packages/downloads/list I will check out why it doesn't print the error me

Re: Errors building GtkD on windows

2013-05-19 Thread Mike Wey
Digital Mars. Try checking if the LINKCMD is set correctly in sc.ini. -- Mike Wey

Re: Can't find GLU symbols when compiling SimpleGL.d found in GtkD/demos

2013-05-19 Thread Mike Wey
On 05/19/2013 09:43 AM, Alexandr Druzhinin wrote: Try this http://gtkd.org/Downloads/GtkDGL.zip The glu32.lib in that zip contains only the symbols needed by the SimpleGL demo. -- Mike Wey

Re: Errors building GtkD on windows

2013-05-19 Thread Mike Wey
On 05/19/2013 03:07 PM, Mike Wey wrote: dmd / rdmd is calling the Microsoft linker instead of the one from Digital Mars. Try checking if the LINKCMD is set correctly in sc.ini. Scratch that, the build script is calling the linker directly. It should probably use dmd for linking the the lib

Re: Errors building GtkD on windows

2013-05-19 Thread Mike Wey
..\src\druntime\import" "-I%@P%\..\..\src" LINKCMD=%@P%\link.exe LINKCMD64=%VCINSTALLDIR%bin\amd64\link.exe VCINSTALLDIR=%VCINSTALLDIR% WindowsSdkDir=%WindowsSdkDir% It was using lib.exe. Fixed in: https://github.com/gtkd-developers/GtkD/commit/5bdf53d6fc831101bf0d461721514c0fd01d1479 -- Mike Wey

Re: Can't find GLU symbols when compiling SimpleGL.d found in GtkD/demos

2013-05-19 Thread Mike Wey
D.lib, Fixed in: https://github.com/gtkd-developers/GtkD/commit/c19a533e018bab16ba6ad44afe8a46540a7e5a6a -- Mike Wey

Re: Can't find GLU symbols when compiling SimpleGL.d found in GtkD/demos

2013-05-19 Thread Mike Wey
On 05/19/2013 06:10 PM, Alexandr Druzhinin wrote: 19.05.2013 20:11, Mike Wey пишет: On 05/19/2013 09:43 AM, Alexandr Druzhinin wrote: Try this http://gtkd.org/Downloads/GtkDGL.zip The glu32.lib in that zip contains only the symbols needed by the SimpleGL demo. I built more complex

Re: Can't find GLU symbols when compiling SimpleGL.d found in GtkD/demos

2013-05-19 Thread Mike Wey
d glu ? -- Mike Wey

Re: more fun with ubuntu

2013-05-26 Thread Mike Wey
ython2.7.a object_.d -ofobject_.x -I../../infrastructure/ -L-ldl -L-lutil -v -- Mike Wey

Re: more fun with ubuntu

2013-05-26 Thread Mike Wey
On 05/26/2013 06:50 PM, Ellery Newcomer wrote: On Sunday, 26 May 2013 at 16:28:33 UTC, Mike Wey wrote: Try prefixing the python lib with -L like so: dmd -unittest -property -debug -gc -version=Python_2_7_Or_Later -version=Python_2_6_Or_Later -version=Python_2_5_Or_Later -version

Re: GtkD not working

2013-06-10 Thread Mike Wey
s section in project settings (I'm using Visual D). Now it did compile, but I get an exception in KernelBase.dll. At this point, I just don't know what to do next. Could someone help, please? Below is the Hello World GtkD-style application that I tried: Do you get any error messages? -- Mike Wey

Re: GtkD not working

2013-06-11 Thread Mike Wey
t -> Properties -> Command Line -> Additional Options. I don't know your setup but you should usually get some linker error when not linking against the gtkd libraries. Also your first post whould suggest you are using Windows while -L-ldl would link in the Linux dynamic linker. -- Mike Wey

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-11 Thread Mike Wey
On 06/11/2013 05:56 PM, Alex Horvat wrote: TreeStore store = cast(TreeStore)tvTreeView.getModel(); In this case store == null I think that one should work, how are you setting/creating the TreeStore? -- Mike Wey

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-12 Thread Mike Wey
On 06/11/2013 07:55 PM, Alex Horvat wrote: On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote: On 06/11/2013 05:56 PM, Alex Horvat wrote: TreeStore store = cast(TreeStore)tvTreeView.getModel(); In this case store == null I think that one should work, how are you setting/creating the

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-16 Thread Mike Wey
On 06/13/2013 06:14 AM, Alex Horvat wrote: On Wednesday, 12 June 2013 at 21:44:55 UTC, Mike Wey wrote: On 06/11/2013 07:55 PM, Alex Horvat wrote: On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote: On 06/11/2013 05:56 PM, Alex Horvat wrote: TreeStore store = cast(TreeStore

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-17 Thread Mike Wey
On 06/17/2013 04:44 AM, Alex Horvat wrote: On Sunday, 16 June 2013 at 18:22:47 UTC, Mike Wey wrote: On 06/13/2013 06:14 AM, Alex Horvat wrote: On Wednesday, 12 June 2013 at 21:44:55 UTC, Mike Wey wrote: On 06/11/2013 07:55 PM, Alex Horvat wrote: On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-19 Thread Mike Wey
On 06/17/2013 09:32 PM, Alex Horvat wrote: On Monday, 17 June 2013 at 17:52:38 UTC, Mike Wey wrote: On 06/17/2013 04:44 AM, Alex Horvat wrote: On Sunday, 16 June 2013 at 18:22:47 UTC, Mi Could you try again with the latest git? https://github.com/gtkd-developers/GtkD/commit

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-20 Thread Mike Wey
store = cast(TreeStore)tv.getModel(); assert(store !is null); store.getNColumns(); } -- Mike Wey

Re: enum for beginners

2011-11-15 Thread Mike Wey
ith -g compiler switch. http://d.puremagic.com/issues/show_bug.cgi?id=5168 -- Mike Wey

Re: GetAndSet function (corresponding to cas function)

2011-12-25 Thread Mike Wey
On 12/25/2011 09:25 AM, Adrian Mercieca wrote: Hi folks, Is there a GetAndSet function (corresponding to cas (compare and set) function) in D? Thanks. core.atomic.cas http://dlang.org/phobos/core_atomic.html#cas -- Mike Wey

Re: Definition of extern(System)?

2012-01-25 Thread Mike Wey
Davis extern(Windows) on windows and extern(C) on everything else. -- Mike Wey

Re: Problems linking libdl?

2012-02-20 Thread Mike Wey
ker --export-dynamic -lphobos2 -lpthread -lm -lrt I get the same error using gdc-4.6 The problem is that -ldl should appear after -lphobos2 in the arguments passed to gcc. -- Mike Wey

Re: Problems linking libdl?

2012-02-21 Thread Mike Wey
On 02/20/2012 10:33 PM, simendsjo wrote: On Mon, 20 Feb 2012 22:26:58 +0100, Mike Wey wrote: On 02/20/2012 09:49 PM, simendsjo wrote: On Mon, 20 Feb 2012 21:41:45 +0100, simendsjo wrote: I've tried the following using dmd 58 and trunk - both -m64 on kubuntu. Any idea what I'm d

Re: SONAME and D

2012-02-23 Thread Mike Wey
On 02/23/2012 05:27 PM, bioinfornatics wrote: dear, for set soname with: - gdc: -Xlinker -soname myLib.so.1 - ldc2: -soname myLib.so.1 - dmd: ? someone know how set soname with dmd ? dmd -L-soname=mylib.so.1 -- Mike Wey

Re: SONAME and D

2012-02-24 Thread Mike Wey
On 02/23/2012 08:29 PM, bioinfornatics wrote: Le jeudi 23 février 2012 à 19:46 +0100, Mike Wey a écrit : On 02/23/2012 05:27 PM, bioinfornatics wrote: dear, for set soname with: - gdc: -Xlinker -soname myLib.so.1 - ldc2: -soname myLib.so.1 - dmd: ? someone know how set soname with dmd

Re: SONAME and D

2012-02-26 Thread Mike Wey
On 02/26/2012 02:53 PM, bioinfornatics wrote: Le vendredi 24 février 2012 à 15:56 +0100, Mike Wey a écrit : On 02/23/2012 08:29 PM, bioinfornatics wrote: Le jeudi 23 février 2012 à 19:46 +0100, Mike Wey a écrit : On 02/23/2012 05:27 PM, bioinfornatics wrote: dear, for set soname with: - gdc

Re: SONAME and D

2012-02-27 Thread Mike Wey
On 02/27/2012 10:30 AM, bioinfornatics wrote: Le lundi 27 février 2012 à 09:51 +0100, Jacob Carlborg a écrit : On 2012-02-26 14:53, bioinfornatics wrote: Le vendredi 24 février 2012 à 15:56 +0100, Mike Wey a écrit : On 02/23/2012 08:29 PM, bioinfornatics wrote: Le jeudi 23 février 2012 à 19

Re: Contracts inheritance

2012-04-16 Thread Mike Wey
act for Foo.bar is checked, since it may accept more then IFoo.bar. -- Mike Wey

Re: What am I doing wrong ?

2012-04-22 Thread Mike Wey
array is at index 9. But in the first iteration of the loop you are trying to access the the item at index 10 (array.length) which doesn't exist. -- Mike Wey

Re: struct to/from void, object to/from void

2012-04-30 Thread Mike Wey
27;s A superclass A test() { return cast(A) new BA(); //cast down } void test2() { A a = test(); BA ba = cast(BA) a; //fails if we have no information, we only see class A. Works because a was originally created as an BA we can cast is back to an BA. assert(ba !is null, "Failed! ba not inherited from A?"); } -- Mike Wey

Re: GtkD compile failed. shift by 32

2012-06-11 Thread Mike Wey
same message no matter which compiler I use. Does any This was a bug in GtkD, getValue needs to return a ulong. The fix has been in the git/svn repo for quite a while now ;). -- Mike Wey

Re: [GtkD] linux shared library names

2013-08-07 Thread Mike Wey
port of gtkglext, which can be found here: https://github.com/tdz/gtkglext I don't know if there are any prebuild binaries available for Ubuntu, so you may need to build it yourself. -- Mike Wey

Re: [GtkD] linux shared library names

2013-08-10 Thread Mike Wey
sources file: src/gtkc/paths.d:127,128 Compile GtkD libraries and recompile your project. Regards, The older version of gtkglext won't work with Gtk+ 3.x and GtkD 2.x so changing the required version in the source won't do you any good. -- Mike Wey

Re: Array copy warning

2013-10-13 Thread Mike Wey
f the assignment. This is also true for regular arrays. -- Mike Wey

Re: D / GtkD for SQL Server

2013-10-20 Thread Mike Wey
alled on the machine. -- Mike Wey

Re: Multiple gtk installations

2013-11-07 Thread Mike Wey
by side, say both GTK 3.x and GTK 2.x, in that case the newer version should be in the path before the older version. -- Mike Wey

Re: Multiple gtk installations

2013-11-07 Thread Mike Wey
g to load is already in memory, Windows will use the the one already in memory. When the version thats in memory is to old for the app you are starting it will crash because of the version mismatch. -- Mike Wey

Re: Multiple gtk installations

2013-11-07 Thread Mike Wey
On 11/07/2013 09:02 PM, Benjamin Thaut wrote: Am 07.11.2013 20:28, schrieb Mike Wey: On 11/07/2013 06:16 PM, Benjamin Thaut wrote: I don't know how other apps do this, but afaik giving each app there own private copy can still cause problems. If a dll with the same name as the one yo

Re: Dub and GtkD

2013-12-22 Thread Mike Wey
/stable" variant by adapting your dependency a little: "dependencies": { "gtk-d:gtkd": "~master" } Just depending on the subpackage you need will stop dub from including the other parts of GtkD in your app. So this should fix your problem. Not sure, why GtkD does this. There are also no versions, just "~master". -- Mike Wey

Re: Dub and GtkD

2013-12-22 Thread Mike Wey
On 12/22/2013 03:36 PM, Russel Winder wrote: On Sun, 2013-12-22 at 12:58 +0100, Mike Wey wrote: On 12/21/2013 11:19 PM, qznc wrote: […] For some reason GtkD uses some unreleased version of Gtk with some OpenGL features. This is because the released version of GtkGLext doesn't support G

Re: GtkD - how to install

2013-12-22 Thread Mike Wey
mmend listing the subpackage as a dependency: { "dependencies": { "gtk-d:gtkd": "~master" } } -- Mike Wey

Re: Dub and GtkD

2013-12-23 Thread Mike Wey
On 12/22/2013 10:00 PM, Artur Skawina wrote: On 12/22/13 20:21, Mike Wey wrote: On 12/22/2013 03:36 PM, Russel Winder wrote: Python now uses the reflection approach to providing a Python binding to the API: PyGTK has given way to PyGobject. Has the PyGobject approach been rejected for GtkD

  1   2   3   >