Re: How to convert PDF to PNG using DMagick?

2021-09-25 Thread Mike Wey via Digitalmars-d-learn
reading PDF's this might work: ``` Image pdf = new Image("./test.pdf") pdf.write("./test.png") ``` DMagick hasn't been updated in a while so it will probably not work with newer versions of ImageMagick. -- Mike Wey

Re: gtkd , addondraw is deprecated

2021-05-21 Thread Mike Wey via Digitalmars-d-learn
drawCallback(Scoped!Context cr, Widget widget) ``` -- Mike Wey

Re: GtkD - how to list 0..100K strings

2020-04-26 Thread Mike Wey via Digitalmars-d-learn
? The code looks correct, do you have something that compiles so that we can test where things go wrong? -- Mike Wey

Re: How to compile with GtkD

2020-02-09 Thread Mike Wey via Digitalmars-d-learn
b will build a copy of the libraries listed as dependencies, you can either remove the dependency line, or the importPaths and libs lines. Since now you are linking against both the library build by dub and the one on your system. -- Mike Wey

Re: Running GtkD programs on macOS

2019-11-29 Thread Mike Wey via Digitalmars-d-learn
On 29-11-2019 04:40, Joel wrote: Oh, I used 'brew install gtk+3', and the test program worked, but (see below) I don't know about all that installing - is that alright? They all look like GTK+ dependencies so that would be alright/ -- Mike Wey

Re: Gtkd and libgtksourceview

2019-10-31 Thread Mike Wey via Digitalmars-d-learn
On 31-10-2019 12:16, Ron Tarrant wrote: On Wednesday, 30 October 2019 at 22:26:41 UTC, Mike Wey wrote: --- girtod -i src --use-runtime-linker --use-bind-dir --- Hmmm... I'll need more information, I'm afraid. I Googled, but I'm not finding any instructions for building these DLLs. girtod

Re: Gtkd and libgtksourceview

2019-10-30 Thread Mike Wey via Digitalmars-d-learn
On 30-10-2019 20:17, Ron Tarrant wrote: On Wednesday, 30 October 2019 at 18:00:24 UTC, Mike Wey wrote: GtkSourceview was updated to 4.x in GtkD version 3.9.0, so any older version should work with GtkSourceview 3. Welcome back, Mike... Thanks. The latest Windows runtime available

Re: Gtkd and libgtksourceview

2019-10-30 Thread Mike Wey via Digitalmars-d-learn
girtod) and you should have a up to date binding for Sourceview 3. -- Mike Wey

Re: Options for unit testing in D?

2019-06-21 Thread Mike Wey via Digitalmars-d-learn
the tests separate and compile these test separately like you are doing in your C project. I use this option in the GlibD project: https://github.com/gtkd-developers/GlibD/blob/master/tests/gobject/meson.build -- Mike Wey

Re: GtkD slows down visual D keyboard

2019-04-26 Thread Mike Wey via Digitalmars-d-learn
lls to it). I can confirm that gtk call "SetWindowsHookEx" with the "WH_KEYBOARD_LL" ID upon initialization. As far as i can tell it doesn't provide a way to skip this. -- Mike Wey

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Mike Wey via Digitalmars-d-learn
to use a different value than the initial value of the adjustment or GTK doesn't see it as a change. -- Mike Wey

Re: Retrieving Column Data from a ListStore?

2019-04-24 Thread Mike Wey via Digitalmars-d-learn
of function apply to. -- Mike Wey

Re: D threading and shared variables

2019-04-07 Thread Mike Wey via Digitalmars-d-learn
expect to cause races or deadlocks. How are you using the GUI, GTK is not thread safe, all gui function calls should be made from the GUI thread. Last time i checked threadsEnter and threadsLeave didn't work properly on windows. -- Mike Wey

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-04-02 Thread Mike Wey via Digitalmars-d-learn
always get a new RGBA passed through the out parameter. -- Mike Wey

Re: Request some GtkD Assistance

2019-03-27 Thread Mike Wey via Digitalmars-d-learn
the linker will prefix `lib` and postfix `.so` `.a`. So the following should work properly: `dmd -de -w -L-lgtkd-3 nufsaid' -- Mike Wey

Re: gtkD: How to paint to screen for animation

2019-03-19 Thread Mike Wey via Digitalmars-d-learn
has nothing else to do. The cairo clock demo is a good example: https://github.com/gtkd-developers/GtkD/blob/master/demos/cairo/cairo_clock/clock.d If performance is an issue one option would be to save your context in a cairo surface and only redraw the parts that have changed. -- Mike Wey

Re: problem extracting data from GtkSourceView using Gtkd

2019-01-17 Thread Mike Wey via Digitalmars-d-learn
On 17-01-2019 00:31, Chris Bare wrote: Are the widgets destroyed before onShutdown? The onShutdown callback is run after the GTK main loop terminates, so most objects would be finalized. -- Mike Wey

Re: problem extracting data from GtkSourceView using Gtkd

2019-01-15 Thread Mike Wey via Digitalmars-d-learn
doing wrong? Any suggestions on what else to try? Your code looks correct, and when copying it into the GtkD sourceview demo str does indeed hold the text displayed in the GtkSourceview. Do you have a more complete example we could look at? -- Mike Wey

Re: DMD32 compiling gtkd out of memory on 32bit Windows 7 machine

2018-09-14 Thread Mike Wey via Digitalmars-d-learn
give up it's DMC linkers, using MinGW ld instead. DMC linker is not even a working linker. You will also have to pass `--build=plain` to dub because of a optlink bug. https://issues.dlang.org/show_bug.cgi?id=15418 -- Mike Wey

Re: Load D shared library on windows x64

2018-08-18 Thread Mike Wey via Digitalmars-d-learn
to see why Runtime.loadLibrary is failing? It just returns null on error which is not very helpful. You can probably use: core.sys.windows.winbase.GetLastError -- Mike Wey

Re: Elegant way to use dynamic bindings

2018-02-09 Thread Mike Wey via Digitalmars-d-learn
h path"? You may need to pass `/s` to implib so it will add the underscore to the symbol in the import library. If it's actually needed depends on what the dll uses. -- Mike Wey

Re: What's the proper way to use std.getopt?

2017-12-12 Thread Mike Wey via Digitalmars-d-learn
On 12-12-17 00:35, Seb wrote: D style would be to use sth. like this (instead of try/catch): ``` scope(failure) {   e.msg.writeln;   1.exit; } ``` I might have missed something, but where is `e` defined in this case? -- Mike Wey

Re: What's the proper way to use std.getopt?

2017-12-11 Thread Mike Wey via Digitalmars-d-learn
"The input", , "output|o", "The output", ); if (helpInformation.helpWanted) { defaultGetoptPrinter("Description", helpInformation.options); exit(0); } } catch (GetOptException e) { writeln(e.msg); exit(1); } ``` -- Mike Wey

Re: .LIB pagesize exceeds 512

2017-12-10 Thread Mike Wey via Digitalmars-d-learn
/show_bug.cgi?id=15418 -- Mike Wey

Re: Email validation

2017-11-28 Thread Mike Wey via Digitalmars-d-learn
and optionally if the domain has a MX record. ``` auto e = isEmail("vino.bhee...@hotmail.com"); if ( e.valid && e.domainPart == "hotmail.com" ) ... ``` -- Mike Wey

Re: GtkD help

2017-11-19 Thread Mike Wey via Digitalmars-d-learn
TreeViewColumn.setCellDataFunc() is also an option. -- Mike Wey

Re: Unable to compile GtkD on windows

2017-11-15 Thread Mike Wey via Digitalmars-d-learn
or build with dub. Tough with dub you will need to pass `--build=plain` because of dmd issue: https://issues.dlang.org/show_bug.cgi?id=15418 -- Mike Wey

Re: opCast fails when this is null.

2017-10-28 Thread Mike Wey via Digitalmars-d-learn
beta tough. -- Mike Wey

opCast fails when this is null.

2017-10-28 Thread Mike Wey via Digitalmars-d-learn
before that happens. Making the opCast static leaves us without access to this, which would be needed in my use case. We can't relay on ufcs since the rewrite to opCast doesn't happen when it's not a member function. -- Mike Wey

Re: Best way to display images with GTKD

2017-10-01 Thread Mike Wey via Digitalmars-d-learn
the alpha channel. -- Mike Wey

Re: Creating a dynamic library

2017-09-30 Thread Mike Wey via Digitalmars-d-learn
*.os. Is there an extension besides .o that dmd would accept for the dynamic object files? I've been using .pic.o so it still ends with .o for dmd. -- Mike Wey

Re: how to build project with locally compiled phobos

2017-09-23 Thread Mike Wey via Digitalmars-d-learn
binary) will pickup the one available in one of the paths configured for the run-time shared library loader. To actually make use of the phobos you compiled you also need to set the rpath. ``` -L-rpath=/path/to/phobos ``` Or use phobos as a static library. -- Mike Wey

Re: Gtk toArray List funkiness

2017-09-17 Thread Mike Wey via Digitalmars-d-learn
On 16-09-17 23:08, Joseph wrote: On Saturday, 16 September 2017 at 20:54:21 UTC, Mike Wey wrote: On 16-09-17 20:58, Joseph wrote: https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/TestWindow/TestWindow.d has the code foreach ( int i, string selection ; fs.getSelections

Re: Gtk toArray List funkiness

2017-09-16 Thread Mike Wey via Digitalmars-d-learn
use but string doesn't work so... ListG and ListSG are missing an toArray overload for string. And getFilenames returns a list of strings. I've added a string overload for toArray: https://github.com/gtkd-developers/GtkD/commit/ba20490b38e502a4d281226572c83c662a700858 -- Mike Wey

Re: How to get DnD to work in GTKD?

2017-09-16 Thread Mike Wey via Digitalmars-d-learn
there are funtions like `getDragDestRow` available with the TreeView widget. -- Mike Wey

Re: GtkD mouse latency issues

2017-09-11 Thread Mike Wey via Digitalmars-d-learn
by GTK. If you have some signals connected to the pane or other widgets, that might cause the issue. -- Mike Wey

Re: vibed services stop response after several days of work

2017-09-01 Thread Mike Wey via Digitalmars-d-learn
might get a better idea of whats going on when using a plain or debug build. -- Mike Wey

Re: Building (and including libraries) without dub

2017-08-26 Thread Mike Wey via Digitalmars-d-learn
. ``` dmd myapp.d -L-L../otherproject/lib -L-lcool ``` -- Mike Wey

Re: GStreamer issues.

2017-08-22 Thread Mike Wey via Digitalmars-d-learn
aybin` instead of explicitly setting the pipeline, Like this: https://github.com/gtkd-developers/GtkD/blob/master/demos/gstreamer/helloworld/gstreamer_helloworld.d This way gstreamer will detect the file type, i don't know if it helps with the errors. -- Mike Wey

Re: GtkD: New widget

2017-08-22 Thread Mike Wey via Digitalmars-d-learn
On 22-08-17 01:38, Johnson wrote: On Monday, 21 August 2017 at 20:54:04 UTC, Mike Wey wrote: On 21-08-17 03:45, Johnson Jones wrote: [...] If you want gtk to know about the functions you override you could use gtkd.Implement.ImplementCLass. [...] Thanks, I'll test it out when I get

Re: GtkD: New widget

2017-08-21 Thread Mike Wey via Digitalmars-d-learn
minimumWidth, out int naturalWidth) { //Set minimumWidth and naturalWidth. } } ``` -- Mike Wey

Re: GtkD: Build script

2017-08-20 Thread Mike Wey via Digitalmars-d-learn
library is build by package because optlink or omf doesn't support more that 32767 symbols in one object file, and i hit that limit. -- Mike Wey

Re: Module Info error

2017-08-19 Thread Mike Wey via Digitalmars-d-learn
her compile ffmpeg-d in to a library and include it when you are building your application, or pass all the ffmpeg-d source files to the compiler. It looks like ffmpeg-d only has a dub.json file for building so you will need to use dub to build it eg: `dub build` from the root of the project. -- Mike Wey

Re: GtkD on android

2017-08-19 Thread Mike Wey via Digitalmars-d-learn
the gtk libs required then use the new ldc to create an app for android. No, but it would be interesting to see if you can get things working. -- Mike Wey

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Mike Wey via Digitalmars-d-learn
uot; - ", index, " - ", text); } RT1.addOnEdited(!1); RT2.addOnEdited(!2); RT2.addOnEdited(!3); ``` -- Mike Wey

Re: Fix gtkD api display

2017-08-10 Thread Mike Wey via Digitalmars-d-learn
On 10-08-17 15:57, Adam D. Ruppe wrote: On Saturday, 5 August 2017 at 14:02:09 UTC, Mike Wey wrote: One issue is the shear size of the generated documentation, though the current version of ddox no longer generates a ton of unused files bringing the size down from 15-20GB to a mere 2GB. what

Re: gtkD window centering message up and no app on taskbar

2017-08-10 Thread Mike Wey via Digitalmars-d-learn
rect place. If it is added to GtkD it won't be in functions.d, which is generated. It would be something like: gdk.c.win32. -- Mike Wey

Re: gtkD window centering message up and no app on taskbar

2017-08-09 Thread Mike Wey via Digitalmars-d-learn
andle", LIBRARY_GDK); ``` I did find out that gdk set the Desktop window as the parent window and doesn't set `WS_EX_APPWINDOW` i should try if setting it for top level windows would fix this from within gdk. -- Mike Wey

Re: gtkD window centering message up and no app on taskbar

2017-08-08 Thread Mike Wey via Digitalmars-d-learn
On 07-08-17 23:52, Johnson Jones wrote: On Monday, 7 August 2017 at 20:57:08 UTC, Mike Wey wrote: On 07-08-17 22:46, Johnson Jones wrote: [...] This appears to be a GTK issue, a work around might be to get the Window handle from gtk and use the Windows API to set the taskbar visibility

Re: gtkD: events being triggered twice

2017-08-07 Thread Mike Wey via Digitalmars-d-learn
On 06-08-17 21:27, FoxyBrown wrote: On Sunday, 6 August 2017 at 18:26:20 UTC, Mike Wey wrote: On 06-08-17 16:58, FoxyBrown wrote: I don't really(my code is a bit more complex) but basically all it boils down to is a UI with some nested widgets (an overlay, an box, and a box and one contains

Re: gtkD window centering message up and no app on taskbar

2017-08-07 Thread Mike Wey via Digitalmars-d-learn
On 07-08-17 22:46, Johnson Jones wrote: On Saturday, 5 August 2017 at 20:56:10 UTC, Mike Wey wrote: Windows will only show the taskbar icon if you are not running the application from the console. Now in x64 it is showing, not in x86. So, not sure what's going on but at least it is showing

Re: gtkD: events being triggered twice

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
. To test i put the label that is on the label page in an event box but that doesn't reproduce the issue. I get just a single event on enter and a single event on leave. -- Mike Wey

Re: gtkD: events being triggered twice

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
box.addOnLeaveNotify((Event e, Widget w) {writeln(w.getName(), " - ", "Leave"); return true; }); Do you have an more complete example that i could test. -- Mike Wey

Re: gtkD load images

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
On 05-08-17 22:59, ag0aep6g wrote: On 08/05/2017 10:30 PM, Mike Wey wrote: On 05-08-17 15:23, Johnson Jones wrote: On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: [...] There are two issues here, you need to properly escape the slash: "C:a.jpg". [...] ``` Pixb

Re: gtkD window centering message up and no app on taskbar

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
. Windows will only show the taskbar icon if you are not running the application from the console. -- Mike Wey

Re: gtkD load images

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 05-08-17 15:23, Johnson Jones wrote: On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: On 03-08-17 21:56, Johnson Jones wrote: If I do something like import gdkpixbuf.Pixbuf; Pixbuf.newFromResource("C:\\a.jpg"); There are two issues here, you need to properly escape

Re: Fix gtkD api display

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 04-08-17 17:24, Gerald wrote: On Friday, 4 August 2017 at 15:08:27 UTC, Mike Wey wrote: Improving the documentation is something i want to do but there are always some more important things to do. Like the Questions/Issues you posted earlier. So unless somebody volunteers it won't happen

Re: GtkD custom theme on Windows

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
:\\Program Files\Gtk-Runtime\share\themes -Edit C:\\Program Files\Gtk-Runtime\etc\gtk-3.0\settings.ini and add: ``` gtk-theme-name = Name_of_Theme ``` -- Mike Wey

Re: gtkD load images

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
constuctor to load an image file. ``` Pixbuf p = new Pixbuf(r"C:\\a.jpg"); ``` -- Mike Wey

Re: Bug in gtkd?

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 03-08-17 23:11, Johnson Jones wrote: On Thursday, 3 August 2017 at 21:00:17 UTC, Mike Wey wrote: On 03-08-17 22:40, Johnson Jones wrote: Ok, so, I linked the gtk to the msys gtk that I installed before when trying to get glade to work and it worked! seems that msys is much more up to date

Re: Fix gtkD api display

2017-08-04 Thread Mike Wey via Digitalmars-d-learn
). It will make navigating the gtkD api much more fun ;) Improving the documentation is something i want to do but there are always some more important things to do. Like the Questions/Issues you posted earlier. So unless somebody volunteers it won't happen anytime soon. -- Mike Wey

Re: Bug in gtkd?

2017-08-03 Thread Mike Wey via Digitalmars-d-learn
to build and test some new installers tomorrow that will include the loaders. -- Mike Wey

Re: Bug in gtkd?

2017-08-03 Thread Mike Wey via Digitalmars-d-learn
On 03-08-17 05:00, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the of

Re: gtk arch issues(fixed)

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
more control when developing). I currently have 3.22 32bit 3.22 64bit and 2.14 installed side by side without any issues. I guess i'll have to try this on a fresh install of Windows in case i forgot about some changes i may have made to the system. -- Mike Wey

Re: Bug in gtkd?

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows. -- Mike Wey

Re: custom drawing with gktd?

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
-developers/GtkD/blob/master/demos/gl/core/CoreGL.d GtkDGL wraps gtkglext3 which is currently not maintained, and no longer has any binaries available. -- Mike Wey

Re: gtk arch issues

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
ted path would be wrong, making things even worse. And yes you could hard code the path that is passed to SetDllDirectory as a work around, but the dll's will need to have there proper names. -- Mike Wey

Re: Bug in gtkd?

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 21:44, Johnson Jones wrote: On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? The latest: Glade

Re: Bug in gtkd?

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? -- Mike Wey

Re: gtk arch issues

2017-08-01 Thread Mike Wey via Digitalmars-d-learn
with GModule / LoadLibrary. So with the library names changed GTK might be loading the Gtk 2 libraries installed with gtksharp instead of the correct ones. -- Mike Wey

Re: gtk arch issues

2017-07-31 Thread Mike Wey via Digitalmars-d-learn
On 31-07-17 19:53, Johnson Jones wrote: Also, why is gtkD even using gtksharp? That's for mono and .net! We don't. only the (C) Gtk runtime is needed. Where did you see gtksharp? -- Mike Wey

Re: gtk arch issues

2017-07-31 Thread Mike Wey via Digitalmars-d-learn
If it's not the correct architecture it continues searching, if no library with the correct architecture is found, we rely on `LoadLibrary` to error out if the libraries are also not in the other locations searched by `LoadLibrary`. -- Mike Wey

Re: dmd can't build gtk x64

2017-07-29 Thread Mike Wey via Digitalmars-d-learn
installed. On gtkd.org installers for both 32bit and 64bit are available, they can be installed side by side without any issues. -- Mike Wey

Re: GtkD on android?

2017-07-26 Thread Mike Wey via Digitalmars-d-learn
not touch-optimized, just like Gtk. And if you want something lightweight, the complete GTK stack is probably not what you are looking for. -- Mike Wey

Re: GStreamer and D

2017-06-17 Thread Mike Wey via Digitalmars-d-learn
/GtkD/blob/master/generated/gtkd/gobject/Value.d#L245 -- Mike Wey

Re: Dub or Dmd trying to use some funny path to find linker.exe

2017-06-10 Thread Mike Wey via Digitalmars-d-learn
tupid question, but I've looked at the documentation all morning and not finding anything. Thanks. You are building a 64bit executable, and in that case the linker shiped with dmd isn't used, as it only handles 32bit (OMF). dmd instead relies on the microsoft linker. Judging from the error the path to the Windows SDK / linker is not set correctly in dmd's sc.ini. -- Mike Wey

Re: The reason for SIGSEGV function pointer problem

2017-06-07 Thread Mike Wey via Digitalmars-d-learn
* args, dvb_v5_fe_parms* parms); The problem there is that libdvdv5 defines it as (check_frontend_t) and not (check_frontend_t*). To get around that you can ommit the * in the declaration of dvb_scan_transponder, and then you should be able to pass to it. -- Mike Wey

Re: gdc and shared objects

2017-06-06 Thread Mike Wey via Digitalmars-d-learn
On 06/06/2017 05:07 PM, Russel Winder via Digitalmars-d-learn wrote: I hope I am just missing an option as everything seems to be there fore this to work. You are missing the `-shared-libphobos` option. -- Mike Wey

Re: D and GDB

2017-06-05 Thread Mike Wey via Digitalmars-d-learn
demangling D symbols, it should detect it's D when you compile with -g. -- Mike Wey

Re: gtkd build fail on windows with dmd 2.074.0

2017-05-28 Thread Mike Wey via Digitalmars-d-learn
On 05/28/2017 03:30 PM, Mike Wey wrote: On 05/28/2017 03:20 PM, Mike Wey wrote: On 05/27/2017 11:42 PM, greatsam4sure wrote: rdmd Build.d fail on windows with dmd 2.074.0,dmd 2.073.0. it says std.file.FileException@std\file.d(814)gtkd2.obj:The system cannot find the file specifield. I have

Re: gtkd build fail on windows with dmd 2.074.0

2017-05-28 Thread Mike Wey via Digitalmars-d-learn
On 05/28/2017 03:20 PM, Mike Wey wrote: On 05/27/2017 11:42 PM, greatsam4sure wrote: rdmd Build.d fail on windows with dmd 2.074.0,dmd 2.073.0. it says std.file.FileException@std\file.d(814)gtkd2.obj:The system cannot find the file specifield. I have to use dmd 2.071.0 to build it I

Re: gtkd build fail on windows with dmd 2.074.0

2017-05-28 Thread Mike Wey via Digitalmars-d-learn
Fixed in commit: https://github.com/gtkd-developers/GtkD/commit/f396481d8d5fe52a2e58b0818494844d672b1c77 The next commit also updates the build script to actually show the error from dmd, rather then blindly continuing with the next step. -- Mike Wey

Re: Get name of current function

2017-04-23 Thread Mike Wey via Digitalmars-d-learn
lines? The __FUNCTION__ keyword would give you the fully qualified name of the function. http://dlang.org/spec/traits.html#specialkeywords -- Mike Wey

Re: foreach for string[string]AA

2017-03-02 Thread Mike Wey via Digitalmars-d-learn
On 03/02/2017 09:09 AM, Anton Pastukhov wrote: On Wednesday, 1 March 2017 at 19:26:23 UTC, Mike Wey wrote: On 02/28/2017 07:16 PM, Anton Pastukhov wrote: On Tuesday, 28 February 2017 at 17:16:43 UTC, Daniel Kozák wrote: [...] Thank you for the link, it was informative reading. It's a pity

Re: foreach for string[string]AA

2017-03-01 Thread Mike Wey via Digitalmars-d-learn
it can be changed to something else. [1] https://github.com/gtkd-developers/GtkD/blob/master/wrap/utils/LinkedHasMap.d -- Mike Wey

Re: Parsing a UTF-16LE file line by line, BUG?

2017-01-06 Thread Mike Wey via Digitalmars-d-learn
hich might have an implementation for fwide. -- Mike Wey

Re: Gui programing in D

2016-12-27 Thread Mike Wey via Digitalmars-d-learn
GTKD. These might be use full: https://sites.google.com/site/gtkdtutorial/ http://gexperts.com/wp/category/gtk/ http://www.britseyeview.com/software/articles/gsgtkd101.html -- Mike Wey

Re: Getting GtkD working with OpenGL

2016-10-06 Thread Mike Wey via Digitalmars-d-learn
by wglCreateContext or glxCreateContext. makeCurrent() sets that context as the one that is rendered to. realize() i think makes sure the context is initialized, but makeCurrent() also calls realize, so makeCurrent is probably the one you want to use. -- Mike Wey

Re: Getting GtkD working with OpenGL

2016-10-04 Thread Mike Wey via Digitalmars-d-learn
On 10/03/2016 11:46 PM, Chalix wrote: On Monday, 3 October 2016 at 18:00:53 UTC, Mike Wey wrote: The signal functions can be found in the gobject.Signals module. But you should use the GLArea.addOnCreateContext / addOnRender / addOnResize functions to attach a D delegate to the signal. You

Re: Why using wrappers for D?

2016-10-03 Thread Mike Wey via Digitalmars-d-learn
the gtkd-3 library? The gtkd-3 library contains for example the code you quoted above. -- Mike Wey

Re: Getting GtkD working with OpenGL

2016-10-03 Thread Mike Wey via Digitalmars-d-learn
On 10/03/2016 01:50 PM, Chalix wrote: On Sunday, 18 September 2016 at 21:41:45 UTC, Mike Wey wrote: The demo still uses the old GtkGLExt binding, which usually isn't available in de distributions repositories. The newer GLArea is easier to use since it's part of GTK. As for the linker errors

Re: Getting GtkD working with OpenGL

2016-09-18 Thread Mike Wey via Digitalmars-d-learn
positories. The newer GLArea is easier to use since it's part of GTK. As for the linker errors, you'll need to link with the OpenGL libraries: "-L-lGL -L-lGLU" -- Mike Wey

Re: GTKD - CSS class color "flash" delay

2016-06-30 Thread Mike Wey via Digitalmars-d-learn
"-flash"); writeln("Removing flash CSS color for: " ~ CSSClassName); return false; } Is the complete source available some ware? -- Mike Wey

Re: GTKD - CSS class color "flash" delay

2016-06-26 Thread Mike Wey via Digitalmars-d-learn
On 06/26/2016 05:03 PM, TheDGuy wrote: On Sunday, 26 June 2016 at 12:30:22 UTC, Mike Wey wrote: You should probably increment the index in the timeout_delay function. This leads to a Range violation exception... How about this: private void letButtonsFlash(){ foreach(Button btn;bArr

Re: GTKD - CSS class color "flash" delay

2016-06-26 Thread Mike Wey via Digitalmars-d-learn
mal color, i don't understand why this happens? Any ideas? You should probably increment the index in the timeout_delay function. -- Mike Wey

Re: GTKD - CSS class color "flash" delay

2016-06-25 Thread Mike Wey via Digitalmars-d-learn
utton currentButton = bArr[rndButtonBlink[i]]; ListG list = currentButton.getStyleContext().listClasses(); string CSSClassName = to!string(cast(char*)list.next().data); currentButton.getStyleContext().addClass(CSSClassName ~ "-flash"); } return false; } ``` -- Mike Wey

Re: GTKD - CSS class color "flash" delay

2016-06-25 Thread Mike Wey via Digitalmars-d-learn
f you want to continue to flash the button, and false to stop. Also don't sleep in the timeout function, the main loop should take care of that, currently you are blocking the main thread for 5 seconds. -- Mike Wey

Re: GTKD - addOnButtonPress faulty?

2016-06-23 Thread Mike Wey via Digitalmars-d-learn
his method is deprecated but i didn't find anything else that works. addOnPressed is deprecated addOnButtonPress is not. -- Mike Wey

Re: GTKD - get CSS class for button

2016-06-22 Thread Mike Wey via Digitalmars-d-learn
thing like this: ``` ListG list = widget.getStyleContext().listClasses(); while(list !is null) { string str = to!string(cast(char*)list.data); //do something with str. list = list.next; } ``` -- Mike Wey

Re: GTKD - Attach Button to Grid in specific column and row

2016-06-14 Thread Mike Wey via Digitalmars-d-learn
On 06/14/2016 04:54 PM, TheDGuy wrote: On Saturday, 11 June 2016 at 21:14:43 UTC, Mike Wey wrote: The way GTK manages width and height, usually widgets are given the minimum size they need. So when the button is the only widget in the grid the other rows and columns have a height/width of 0

  1   2   3   >