Hello World Example with Glade?

Mike James via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 10 23:53:06 PDT 2015


On Friday, 11 September 2015 at 06:45:07 UTC, Mike McKee wrote:
> On Friday, 11 September 2015 at 06:00:39 UTC, Mike McKee wrote:
>> [...]
>
> I think the start of this probably looks like the following, 
> but I'm not certain:
>
> import gtk;
> import gobject.Type;
> import std.stdio;
> import std.c.process;
>
> int main (string[] args)
> {
> 	Main.init(args);
> 	Builder b = new Builder();
> 	b.addFromFile("test1.glade");
> 	Window w = cast(Window)b.getObject("window1");
> 	w.showAll();
> 	Main.run();
> 	return 0;
> }

Hi Mike,

There's a Glade example in the demos/builder directory...

Regards, -<Mike>-

>
> ...so, this assumed that I had a test1.glade file, and that I 
> had this line inside it:
>
> <object class="GtkApplicationWindow" id="window1">
>
> So now I need to figure out how to get GtkD installed on Ubuntu 
> Linux 14.04.



More information about the Digitalmars-d-learn mailing list