Questions tagged [gtkd]

Gtkd is a D binding and OO wrapper for the GTK+ toolkit.

Gtkd is a binding and object-oriented wrapper of the GTK+ widget toolkit for the D programming language.

37 questions
8
votes
5 answers

How to use gtkD in Win7 and dmd (D2)?

I downloaded gtkD-1.5.1 and extracted to some gtkD directory. What do I do next ? I don't understand if I have to compile and link it to some lib or just link to it in my code ? Edit: (@dsimcha) the command dsss build in gtkD main dir gave me…
Tar
  • 8,529
  • 9
  • 56
  • 127
7
votes
1 answer

gtkD: Minimal Drawing Example?

I'm a fairly experienced programmer, but new to GUI programming. I'm trying to port a plotting library I wrote for DFL to gtkD, and I can't get drawings to show up. The following code produces a blank window for me. Can someone please tell me…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
6
votes
2 answers

Setting up a working D2.x toolchain (with gtkd) on Ubuntu 10.04

I've been playing around with D for a few days and was getting quite excited about it until, that is, I tried to get gtkd working. I've now wasted the best part of 3 days trying to get a working setup and am beginning to get (read; long ago got) a…
tjm
  • 7,500
  • 2
  • 32
  • 53
6
votes
1 answer

How To Show Hello World with Glade/GtkD and the D Programming Language

On Ubuntu Linux, I can use the Glade application to create a Hello World dialog. Now how do I get the D programming language to display it?
Volomike
  • 23,743
  • 21
  • 113
  • 209
5
votes
3 answers

In D, how to pass an empty string? (to gtkD)

Using D1 with phobos I have a text entry field, instance of gtk.Entry.Entry, calling setText("") raises a run time error Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed Why? It seems to be a problem with D, I tried this: string…
hasen
  • 161,647
  • 65
  • 194
  • 231
5
votes
1 answer

What is the difference between MainWindows show() and showAll() method in GtkD?

Here is my test: import gtk.Main; import gtk.MainWindow; import gtk.Label; void main(string[] args) { Main.init(args); auto window = new MainWindow("My Window"); window.add(new Label("Label1")); window.show(); …
odinthenerd
  • 5,422
  • 1
  • 32
  • 61
4
votes
4 answers

getting started with gtkd

I'm new to D, and want to experiment with gtkd. I'm on arch linux, and installed the dmd2-complete (dmd 2.0.56) and gtkd-svn (gtkd built against D2) packages. I also verified that D itself was working properly (compiled and ran a basic…
Martin DeMello
  • 11,876
  • 7
  • 49
  • 64
4
votes
1 answer

GtkD with D lang on Fedora

I use Fedora20 and I install gtkd via sudo yum install gtkd How to compile gtk this code ? import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello…
Singularity
  • 95
  • 1
  • 6
4
votes
1 answer

Can't compile GtkD SourceView code

I am new to gtk programming and d and learning using demos from gtkd source. when i try to compile the code below [ i am using dmd-2.060 and gtkd-2.0 on archlinux ]. /* Modified sourceview demo for learning gtk programming in d */ pragma(lib,…
gimireh
  • 43
  • 4
3
votes
1 answer

Gtk/GtkD Detect release of mouse button on window resize?

I'm trying to improve a plotting library that I wrote with GtkD (the D bindings for Gtk). Scatter plots with a lot of points take a long time to resize. I want to rescale the image, allowing pixelation, while the user is dragging the window edge…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
3
votes
1 answer

D Classes, OOP and GTKd Notebook

I am trying to append a page to a gtk notebook using gtkd from the second class (MyNewClass) below. The notebook is created within the first class, main_window and is called by the second. The program compiles fine, however when I open the program…
user3529893
  • 109
  • 6
2
votes
1 answer

Handling key presses in GTK+ (gtkD)

I'm playing around with gtkD (a D binding for GTK+) I have a window object, instance of gtk.MainWindow. I want to handle keypresses on it. How? How do I deal with special keys (e.g. arrow keys, pgup/pgdn etc)? PS I know these kinds of questions…
hasen
  • 161,647
  • 65
  • 194
  • 231
2
votes
1 answer

Multithreaded application with gtkD

I'm playing with gtkD for a while, and I'm learning D2/Phobos in parallel. Yesterday I was looking up the std.concurrency module and tried to write a toy multithreaded fractal viewer, but the problem is that I can't see the way multithreading works…
comco
  • 573
  • 4
  • 13
2
votes
0 answers

DLL Hell: SnacNp64.dll + gtkD

Apparently when I run some 32-bit apps I created using gtkD on Win64 systems with Symantec Endpoint Protection installed and network drives mapped, and try to bring up a file dialog, something in the runtime attempts to load SnacNp64.dll, a 64-bit…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
2
votes
0 answers

Interaction between Widgets in gtkd

I am experimenting with D and gtkd. Now, I have this button, and when I click it, I want to start a function in an other widget. How can I do this? Here is some example Code, that is working, but not yet doing, what I want(when pressing…
jan_w
  • 113
  • 1
  • 6
1
2 3