k supports
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
ated.
```
bool drawCallback(Scoped!Context cr, Widget widget)
```
--
Mike Wey
avy for 100K strings?
The code looks correct, do you have something that compiles so that we
can test where things go wrong?
--
Mike Wey
ll 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
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
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
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 on the
girtod) and you should have a up to date binding for Sourceview 3.
--
Mike Wey
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
of calls 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
nly you have to
use a different value than the initial value of the adjustment or GTK
doesn't see it as a change.
--
Mike Wey
ndicates the row these kind of function apply to.
--
Mike Wey
7;s nothing I'd 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
will always get a
new RGBA passed through the out parameter.
--
Mike Wey
l the linker will prefix `lib` and postfix
`.so` `.a`.
So the following should work properly:
`dmd -de -w -L-lgtkd-3 nufsaid'
--
Mike Wey
nloop 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
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
out TextIter start, out TextIter end)
Is there something I'm 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
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
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
;system library search 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
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
"The input", &input,
"output|o", "The output", &output
);
if (helpInformation.helpWanted)
{
defaultGetoptPrinter("Description", helpInformation.options);
exit(0);
}
}
catch (GetOptEx
g.org/show_bug.cgi?id=15418
--
Mike Wey
s 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
cell
TreeViewColumn.setCellDataFunc() is also an option.
--
Mike Wey
.1 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
beta tough.
--
Mike Wey
hrown 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
e changing the alpha channel.
--
Mike Wey
*.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
(and your 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
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
alue is the wrong type to 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
there are funtions like `getDragDestRow` available
with the TreeView widget.
--
Mike Wey
gnals everything should be handled by
GTK. If you have some signals connected to the pane or other widgets,
that might cause the issue.
--
Mike Wey
If so you might get a better idea of
whats going on when using a plain or debug build.
--
Mike Wey
linker with dmd.
```
dmd myapp.d -L-L../otherproject/lib -L-lcool
```
--
Mike Wey
original demo the pipeline was set up manually, this gives you
full control over the pipeline, but you do need to know what you are
doing. It wont work when using the wrong Elements, source, or destination.
--
Mike Wey
he Gstreamer demo should use an `playbin` 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
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
blic void getPreferredWidth(out int minimumWidth, out int
naturalWidth)
{
//Set minimumWidth and naturalWidth.
}
}
```
--
Mike Wey
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
lly, it's
quite an annoying problem ;/
You need to either 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
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
)
{
writeln(column, " - ", index, " - ", text);
}
RT1.addOnEdited(&cb!1);
RT2.addOnEdited(&cb!2);
RT2.addOnEdited(&cb!3);
```
--
Mike Wey
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
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
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
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
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 con
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 sh
al example.
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
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
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
itioning the widgets.
Windows will only show the taskbar icon if you are not running the
application from the console.
--
Mike Wey
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
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 h
-Extract the theme to: C:\\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
nstuctor
to load an image file.
```
Pixbuf p = new Pixbuf(r"C:\\a.jpg");
```
--
Mike Wey
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
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
now.
I'll try to build and test some new installers tomorrow that will
include the loaders.
--
Mike Wey
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 offic
end but I have 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
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
b.com/gtkd-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
arches, and then the printed 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
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
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
t start up 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
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
irst by `LoadLibrary`.
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
rsion of
the GTK runtime installed.
On gtkd.org installers for both 32bit and 64bit are available, they can
be installed side by side without any issues.
--
Mike Wey
impression it's 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
opers/GtkD/blob/master/generated/gtkd/gobject/Value.d#L245
--
Mike Wey
y if this is a stupid 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
rn(C) int function (void* 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 &checkFrontend
to
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
pport demangling D symbols, it should
detect it's D when you compile with -g.
--
Mike Wey
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
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 will
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
omething along those lines?
The __FUNCTION__ keyword would give you the fully qualified name of the
function.
http://dlang.org/spec/traits.html#specialkeywords
--
Mike Wey
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
[1]
https://github.com/gtkd-developers/GtkD/blob/master/wrap/utils/LinkedHasMap.d
--
Mike Wey
runtime which might have an implementation for
fwide.
--
Mike Wey
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
ike the one's returned 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
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
quot;? What kind of code is
inside the gtkd-3 library?
The gtkd-3 library contains for example the code you quoted above.
--
Mike Wey
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 lin
distributions repositories.
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
emoveClass(CSSClassName ~
"-flash");
writeln("Removing flash CSS color for: " ~ CSSClassName);
return false;
}
Is the complete source available some ware?
--
Mike Wey
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
o back to normal color, i don't understand why this happens? Any ideas?
You should probably increment the index in the timeout_delay function.
--
Mike Wey
l timeout_delay()
{
for(int i = 0; i < level; i++){
Button 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
nd return true if 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
ow that
GTKD claims that this method is deprecated but i didn't find anything
else that works.
addOnPressed is deprecated addOnButtonPress is not.
--
Mike Wey
. to
iterate over the list do something 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
1 - 100 of 234 matches
Mail list logo