Re: D Binding to GUI libraries

2018-10-21 Thread Gerald via Digitalmars-d
On Monday, 22 October 2018 at 04:41:08 UTC, Nick Sabalausky (Abscissa) wrote: On 10/21/18 1:13 PM, Russel Winder wrote: [...] First of all, minor nitpick: Unless some bombshell news occurred that I managed to miss, Ubuntu pushes their own Unity, NOT Gnome. Yes, that's still GTK, but

Re: Norwich 2018-11-07

2018-10-16 Thread Gerald via Digitalmars-d
On Tuesday, 16 October 2018 at 03:42:13 UTC, Russel Winder wrote: Hi, I am doing a presentation looking at DVB, GTK+, GStreamer, C, C++, gtkmm, D, GtkD, GStreamerD, Rust, gtk-rs, and gstreamer-rs in Norwich 2018-11-07. Anyone who wants to come and heckle about ditching D and switching to

Re: [OT] Is this a feature is any Linux terminal?

2018-10-14 Thread Gerald via Digitalmars-d
On Sunday, 14 October 2018 at 23:28:04 UTC, Nick Sabalausky (Abscissa) wrote: But it just occurred to me: There's no reason any ordinary terminal emulator couldn't be written to do the same thing. A setting for a custom regex to look for, another setting for a command to run when the line is

Re: Canadian companies using D?

2018-09-12 Thread Gerald via Digitalmars-d
On Wednesday, 12 September 2018 at 01:14:58 UTC, Ryan Barker wrote: I wonder if you guys are aware of any Canadian companies using D, I want to do some research about what they're using D for and eventually follow some of them. I was browsing https://dlang.org/orgs-using-d.html but I didn't

Re: Meson issue with -L--export-dynamic flag

2018-09-03 Thread Gerald via Digitalmars-d-learn
For anyone that wants to try to reproduce it, you can clone this repo and switch to the meson branch: https://github.com/bilelmoussaoui/tilix

Meson issue with -L--export-dynamic flag

2018-09-03 Thread Gerald via Digitalmars-d-learn
Myself and some others are looking at replacing autotools in Tilix with meson for the various Linux distros to use when building and packaging the binary. However we are running into an issue with meson around the use of the "-L--export-dynamic" flag. When compiling with meson using LDC and

auto: useful, annoying or bad practice?

2018-04-30 Thread Gerald via Digitalmars-d
I'll freely admit I haven't put a ton of thought into this post (never a good start), however I'm genuinely curious what people's feeling are with regards to the auto keyword. Speaking for myself, I dislike the auto keyword. Some of this is because I have a preference for static languages and

Tilix 1.7.9 Released

2018-04-29 Thread Gerald via Digitalmars-d-announce
A new version of tilix has been released. For those not familiar with it, Tilix is a terminal emulator for Linux written in D using GTK. The list of changes is available here: https://gnunn1.github.io/tilix-web/2018/04/28/release-1-7-9 As always, I'm always looking for people who are

Re: Create variable for RedBlackTree range

2018-04-28 Thread Gerald via Digitalmars-d-learn
On Saturday, 28 April 2018 at 17:20:46 UTC, Jonathan M Davis wrote: On Saturday, April 28, 2018 16:36:41 Gerald via Digitalmars-d-learn wrote: [...] In general, you just use auto, but that's not going to work if you can't directly initialize the variable. In that case, the solution

Create variable for RedBlackTree range

2018-04-28 Thread Gerald via Digitalmars-d-learn
What is the appropriate way to create a variable for the range returned by RedBlackTree lowerBound and upperBound. For example, given this code: ``` RedBlackTree!long promptPosition = redBlackTree!long(); long row = to!long(vte.getVadjustment().getValue()); RBRange!(RBNode!long*) range; if

Re: DUB and Gtk-d reduce size of huge executable, build dynamic dependencies

2018-03-10 Thread Gerald via Digitalmars-d-learn
On Wednesday, 7 March 2018 at 10:51:49 UTC, CSim wrote: Hi, I'm trying to decide whether it is better to use DLang for Gtk development or Vala/Genie. When I make a simple Vala/Genie Gtk executable the file is tiny whereas the DLang file is huge. First I used the default Dub build and the

Re: Localization (i18n) Options

2017-11-29 Thread Gerald via Digitalmars-d
On Tuesday, 28 November 2017 at 07:39:19 UTC, Ivan Trombley wrote: On Sunday, 24 January 2016 at 19:18:28 UTC, Gerald wrote: On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote: Please, write a HowTo some where. GtkD lack of documentation it's very anoying. I've gotten this going with

Re: Release D 2.077.0

2017-11-03 Thread Gerald via Digitalmars-d-announce
On Thursday, 2 November 2017 at 22:35:03 UTC, Martin Nowak wrote: Glad to announce D 2.077.0. This release comes with a new, more compact mangling, templated vector operations, reproducible dmd builds, and various fixes. Thanks to everyone involved in this .

Re: gtk: get property

2017-08-05 Thread Gerald via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:08:21 UTC, Johnson Jones wrote: I am trying to get the handle size of panned. Not sure if I'm doing it right but [...] I'm using this in Tilix: Value handleSize = new Value(0); paned.styleGetProperty("handle-size", handleSize);

Re: Fix gtkD api display

2017-08-04 Thread Gerald via Digitalmars-d-learn
On Friday, 4 August 2017 at 21:54:26 UTC, Johnson Jones wrote: On Friday, 4 August 2017 at 15:24:51 UTC, Gerald wrote: On Friday, 4 August 2017 at 15:08:27 UTC, Mike Wey wrote: [...] Mike I had contributed the makeddox.sh script awhile ago, it generates much nicer documentation then

Re: Fix gtkD api display

2017-08-04 Thread Gerald via Digitalmars-d-learn
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 anytime soon. Mike I had

Re: How do you use D?

2017-07-28 Thread Gerald via Digitalmars-d
How do you use D? I use D for building GTK applications, my current project is an open source Linux terminal emulator called Tilix (https://github.com/gnunn1/tilix) In work, (key projects or smaller side projects) Side projects only. Did you introduce D to your work place? How? What

Re: Fiber based UI-Toolkit

2017-07-10 Thread Gerald via Digitalmars-d-learn
On Monday, 10 July 2017 at 14:03:59 UTC, Jacob Carlborg wrote: On 2017-07-10 15:37, Gerald wrote: Having said that, I'm in the camp where this doesn't make much sense. Using fibers on the main UI thread is likely going to result in a blocked UI whenever a fiber takes too long to do its work.

Re: Fiber based UI-Toolkit

2017-07-10 Thread Gerald via Digitalmars-d-learn
On Sunday, 9 July 2017 at 19:43:14 UTC, Christian Köstlin wrote: I wonder if there is any fiber based / fiber compatible UI-Toolkit out for dlang. The second question is, if it would make sense at all to have such a thing? As previously noted, like other UI toolkits GTK maintains a single

Re: A Few thoughts on C, C++, and D

2017-05-29 Thread Gerald via Digitalmars-d
On Monday, 29 May 2017 at 16:08:11 UTC, Russel Winder wrote: I like the comment from DConf that D should be the successor to Vala for writing GObject-based code. We have GtkD and in it GStreamer. Writing programs in C with them is a real pain in the a### and using C++ is only a little bit

Re: Tilix 1.5.8 released

2017-05-26 Thread Gerald via Digitalmars-d-announce
On Friday, 26 May 2017 at 07:26:21 UTC, colin wrote: How difficult would it be to get osx support? In theory it could work but I have no experience with GTK in OSX to say how feasible it is. Also, looking​ at the screens - it looks very like tmux - is there any integration there? Not at

Re: Tilix 1.5.8 released

2017-05-24 Thread Gerald via Digitalmars-d-announce
On Wednesday, 24 May 2017 at 07:25:56 UTC, Andrea Fontana wrote: It seems that package on webupd8 is still on 1.5.4 Unfortunately I do not maintain the packages, best course of action would be to drop them a line asking them to update it.

Tilix 1.5.8 released

2017-05-23 Thread Gerald via Digitalmars-d-announce
Tilix 1.5.8 is now available with a number of new features and bug fixes. For those unfamiliar with Tilix, it is a tiling terminal emulator for Linux written in D using GTK3. It attempts to follow the Gnome Human Interface Guidelines as closely as possible. More information about Tilix is

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-11 Thread Gerald via Digitalmars-d
On Tuesday, 11 April 2017 at 12:47:13 UTC, Russel Winder wrote: So why bother, no Rust people will use it, they just use Cargo and it gets stuff for them. Why bother packaging anything when people will not use it? All you need to have a working Rust system on Debian is curl and bash. Users

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-11 Thread Gerald via Digitalmars-d
Looking into Rust and Cargo Debian packaging, it looks like they are looking to go with source packages to work around the ABI issue: "Because Rust doesn't have a stable shared-library ABI, and we don't want to rebuild every Rust library package for every architecture every time we upload a

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-04-10 Thread Gerald via Digitalmars-d
On Monday, 10 April 2017 at 11:40:12 UTC, Matthias Klumpp wrote: There are a two issues though that we will be facing in Debian soon, and I would like to get some opinion and maybe perspective on from the D community on them. First I would like to say thank you for all the work you did in

Re: Terminix renamed to Tilix

2017-03-21 Thread Gerald via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 08:22:13 UTC, Andrea Fontana wrote: So, is Ubuntu Budgie going to use Tilix as default? [1] That's a big news for D imo :) https://github.com/UbuntuBudgie/budgie-desktop-environment/issues/33 That's their plan, they haven't asked me about it specifically but it's

Re: Terminix renamed to Tilix

2017-03-20 Thread Gerald via Digitalmars-d-announce
On Monday, 20 March 2017 at 17:25:01 UTC, Adam D. Ruppe wrote: On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote: Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. I'm

Terminix renamed to Tilix

2017-03-20 Thread Gerald via Digitalmars-d-announce
Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. The new URLs for Tilix are as follows: Website: https://gnunn1.github.io/tilix-web Github Repo:

Re: D street cred: Just a thought

2017-03-04 Thread Gerald via Digitalmars-d
On Saturday, 4 March 2017 at 07:09:17 UTC, Nick Sabalausky (Abscissa) wrote: Perhaps...take a worthwhile C/C++ project with real potential, fork it, and port it to D. And make a real commitment to maintaining it. Obviously a bit of a gambit, granted, but the potential payout is improving a

Terminix 1.5.0 Released

2017-02-20 Thread Gerald via Digitalmars-d-announce
I'm pleased to announce that Terminix 1.5.0 has been released. Terminix is a GTK3 tiling terminal emulator for Linux which follows the Gnome Human Interface Guidelines (HIG). More information about Terminix can be found here: https://gnunn1.github.io/terminix-web/ The following changes have

Re: Gui in D: I miss this project

2017-01-13 Thread Gerald via Digitalmars-d
On Wednesday, 11 January 2017 at 15:56:46 UTC, Chris Wright wrote: On Wed, 11 Jan 2017 07:21:22 +, thedeemon wrote: If you need some GUI, DLangUI is just a "dub build" away. How does DLangUI do with screen readers and magnifiers? From what I'm seeing, neither GTK+ nor Qt work with screen

Re: GtkD 3.5.0, GTK+ with D.

2017-01-07 Thread Gerald via Digitalmars-d-announce
On Saturday, 7 January 2017 at 16:46:38 UTC, dlang user wrote: When I compile the HelloWorld.d demo code on version 3.4.1 in debug mode the resulting file size is 26.4MB, when I compile the same code with 3.5.0 the file size is 70.7MB, that is quite a jump in size. I am using DMD V2.072.2 on

Re: Terminix Year In Review

2017-01-04 Thread Gerald via Digitalmars-d-announce
On Wednesday, 4 January 2017 at 04:08:00 UTC, Adam D. Ruppe wrote: On Monday, 2 January 2017 at 21:11:47 UTC, Getald wrote: I'm not sure a textview would be viable, it might work for the command prompt but I doubt it would handle ncurses type applications like vi or nano very well. I don't

Re: Terminix Year In Review

2017-01-02 Thread Gerald via Digitalmars-d-announce
On Monday, 2 January 2017 at 14:55:26 UTC, Adam D. Ruppe wrote: On Monday, 2 January 2017 at 00:53:04 UTC, Gerald wrote: Terminix is a GTK 3 tiling terminal emulator that has been designed following the GNOME Human Interface Guidelines. So, how hard would it be for you to swap out parts of

Terminix Year In Review

2017-01-01 Thread Gerald via Digitalmars-d-announce
Terminix is a GTK 3 tiling terminal emulator that has been designed following the GNOME Human Interface Guidelines. The project started just over a year ago at the start of 2016 and I thought it would be fun to look back at the project history, highlights, low-lights and goals for 2017.

Re: Terminix 1.4.0 Released

2016-12-22 Thread Gerald via Digitalmars-d-announce
On Thursday, 22 December 2016 at 14:33:46 UTC, Adil Baig wrote: Just wanted to say this is a truly awesome project! Also, it's the highest starred D project I've seen, but somehow isn't on this list : https://github.com/search?l==desc=language%3AD=advsearch=stars=Repositories=%E2%9C%93 Try

Terminix 1.4.0 Released

2016-12-22 Thread Gerald via Digitalmars-d-announce
Terminix 1.4.0, a tiling terminal emulator for Linux written in D, is now available. This new release introduces a number of new features plus squashes some significant bugs. Additionally, this release introduces an awesome new Terminix website (https://gnunn1.github.io/terminix-web) thanks

Re: Red Hat's issues in considering the D language

2016-12-21 Thread Gerald via Digitalmars-d
On Tuesday, 20 December 2016 at 23:08:28 UTC, Andrei Alexandrescu wrote: Hello, a few engineers at Red Hat are taking a look at using the D language on the desktop and have reached out to us. They have created a list of issues. We are on the top-level ones, and of course would appreciate any

Re: Hosting vibe.d on OpenShift

2016-12-10 Thread Gerald via Digitalmars-d-learn
On Saturday, 10 December 2016 at 17:54:58 UTC, aberba wrote: On Thursday, 8 December 2016 at 20:37:23 UTC, Tiberiu Gal wrote: On Thursday, 8 December 2016 at 14:03:35 UTC, aberba wrote: I would like to try vibe.d with mongoDB on OpenShit. I managed to do that on Heroku. Do I need a buildpack

Re: Terminix 1.30 Released

2016-09-30 Thread Gerald via Digitalmars-d-announce
On Friday, 30 September 2016 at 20:02:46 UTC, Daniel Kozak wrote: One problem, when I run terminix in quake mode, there is missung icon on my top bar in gnome shell and there is no way to go to preferences, in normal window mode everything works ok. It's by design, I set some hints so it

Re: Terminix 1.30 Released

2016-09-30 Thread Gerald via Digitalmars-d-announce
On Friday, 30 September 2016 at 19:46:54 UTC, Daniel Kozak wrote: On Friday, 30 September 2016 at 18:32:37 UTC, Gerald wrote: [...] It is 1.30 or 1.3.0 because github download link is: https://github.com/gnunn1/terminix/releases/download/1.3.0/terminix.zip 1.3.0, typo on my part.

Replace/Rename DWT forum with GUIs forum?

2016-09-18 Thread Gerald via Digitalmars-d
I would like to suggest that the existing DWT forum be renamed or replaced with a more generic GUIs forum. As far as I can tell, the DWT forum doesn't get much traffic these days and I don't believe any of the current GUI options for D are sufficiently popular to warrant their own specific

Pass RegexMatch to a function?

2016-08-08 Thread Gerald via Digitalmars-d-learn
I have a RegexMatch that I want to pass to a function that takes the match and replaces various tokens in a string with the match and/or individual groups of the match. I'm struggling to figure out how to pass a RegexMatch to a function, right now I have code like the follows: RegexMatch

Re: Terminix Stable 1.2.0 Released

2016-07-23 Thread Gerald via Digitalmars-d-announce
On Saturday, 23 July 2016 at 09:27:14 UTC, phant0m wrote: Nice work! By the way, Terminix is present in the Arch Linux AUR. But it seems that it's very inconvenient for me. I don't use gnome and I don't like the fat titlebars (client side decorations). Moreover, the Terminix window doesn't

Re: Terminix Stable 1.2.0 Released

2016-07-22 Thread Gerald via Digitalmars-d-announce
On Friday, 22 July 2016 at 17:30:30 UTC, sdhdfhed wrote: On Friday, 22 July 2016 at 13:54:41 UTC, Gerald wrote: I've pushed out the latest stable version of Terminix, a tiling terminal emulator for Linux written in D using GtkD. The following new features have been added: Design changes as

Terminix Stable 1.2.0 Released

2016-07-22 Thread Gerald via Digitalmars-d-announce
I've pushed out the latest stable version of Terminix, a tiling terminal emulator for Linux written in D using GtkD. The following new features have been added: Design changes as per discussion in #372 Support for background images Limited support for automatic profile switching Globally

Re: Using electron for IDE development

2016-07-04 Thread Gerald via Digitalmars-d
On Monday, 4 July 2016 at 18:25:51 UTC, tcak wrote: As far as I known, and FEEL, one of the biggest problems of IDE development is cross platform user interface development. I haven't started using, but Electron seems like a good tool to develop applications by using HTML, JS, CSS. Because it

Re: GTKD - CSS class color "flash" delay

2016-06-24 Thread Gerald via Digitalmars-d-learn
On Friday, 24 June 2016 at 12:38:37 UTC, TheDGuy wrote: The color changing part works fine but if i use some kind of delay the program just starts delayed but no color changing happens. I am wondering why, because everything is executed in one thread, so the execution order looks like this to

Re: GTKD - get CSS class for button

2016-06-22 Thread Gerald via Digitalmars-d-learn
On Wednesday, 22 June 2016 at 12:57:51 UTC, TheDGuy wrote: widget.getStyleContext().listClasses() to get a list of all classes assigned to the widget. If you just want to see if a specific class is assigned to the widget you can use widget.getStyleContext().hasClass() Thanks a lot for your

Re: GTKD - get CSS class for button

2016-06-22 Thread Gerald via Digitalmars-d-learn
On Wednesday, 22 June 2016 at 08:08:20 UTC, TheDGuy wrote: Hello, i would like to know if it possible to get the CSS-class which is asigned to a button (for example)? I didn't find any documentation about this, just the function "getStyleContext().getProperty()", my current attempt: Value

Re: Cross platform android ldc compiler

2016-06-17 Thread Gerald via Digitalmars-d
On Friday, 17 June 2016 at 11:48:23 UTC, Andre Pany wrote: Hi, I want to share an idea with you. I do not know how far I will come myself with this idea due to my lack of linux and ldc knowledge. There is a great virtualization tool called docker. With this tool it is possible to create

Re: GTKD - overrideBackgroundColor of Button doesn't work

2016-06-16 Thread Gerald via Digitalmars-d-learn
On Thursday, 16 June 2016 at 07:58:56 UTC, TheDGuy wrote: On Wednesday, 15 June 2016 at 22:34:05 UTC, Gerald wrote: snip... The text color is green but the button background color is still default-gray! I don't see an obvious issue with your code, I usually use CSS classes personally and I

Re: GTKD - overrideBackgroundColor of Button doesn't work

2016-06-15 Thread Gerald via Digitalmars-d-learn
On Wednesday, 15 June 2016 at 21:39:37 UTC, TheDGuy wrote: On Wednesday, 15 June 2016 at 20:49:02 UTC, Gerald wrote: On Wednesday, 15 June 2016 at 09:03:45 UTC, TheDGuy wrote: Hello, why does this code not work? RGBA rgb = new RGBA(1,0.5,0.5,1.0); Button btn_1 = new

Re: GTKD - overrideBackgroundColor of Button doesn't work

2016-06-15 Thread Gerald via Digitalmars-d-learn
On Wednesday, 15 June 2016 at 09:03:45 UTC, TheDGuy wrote: Hello, why does this code not work? RGBA rgb = new RGBA(1,0.5,0.5,1.0); Button btn_1 = new Button("Start"); btn_1.overrideBackgroundColor(StateFlags.NORMAL, rgb); The color of btn_1 just doesn't change.

Re: LDC 1.0.0 has been released!

2016-06-13 Thread Gerald via Digitalmars-d-announce
Awesome news, just noticed a blurb on the Linux news site Phoronix about this as well: http://www.phoronix.com/scan.php?page=news_item=LDC-1.0-Released

XDG-APP and D

2016-04-21 Thread Gerald via Digitalmars-d-announce
For those not familiar, xdg-app is a Linux virtualization system targeted at desktop apps, it's been under pretty heavy development and is available for use in Gnome 3.20. Mathias Clausen recently wrote a blog entry about creating his first xdg-app and the application he chose to play with

Re: Gnome Builder IDE

2016-04-19 Thread Gerald via Digitalmars-d
On Tuesday, 19 April 2016 at 17:16:45 UTC, WebFreak001 wrote: On Tuesday, 19 April 2016 at 16:29:41 UTC, Karabuta wrote: Anyone tried this IDE for D coding? Seems to work pretty well. It deserves some D attention. https://wiki.gnome.org/Apps/Builder Cool, it supports plugins using libpeas.

Re: Which application is much suited and which is not.

2016-04-18 Thread Gerald via Digitalmars-d-learn
On Saturday, 16 April 2016 at 14:08:05 UTC, newB wrote: Let's say you have decided to use D programming language. For what kind of applications would you choose D programming language and For what kind of applications you won't choose D programming. I might be in the minority opinion

Re: the most D-ish GUI library

2016-03-29 Thread Gerald via Digitalmars-d
On Tuesday, 29 March 2016 at 17:37:15 UTC, Nick Sabalausky wrote: Linux/GNOME (and any other Linux DE based on GTK): Use the QGtkStyle theme: It's a theme for Qt that *uses* GTK to render, therefore

Re: GtkD 3.3.0 released, GTK+ with D.

2016-03-23 Thread Gerald via Digitalmars-d-announce
On Wednesday, 23 March 2016 at 18:16:02 UTC, Mike Wey wrote: GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. A new version of GTK was released today, and with that comes a new GtkD release so you can use the new features in D. GtkD 3.3.0 is now available on

Re: Where do I learn to use GtkD

2016-03-14 Thread Gerald via Digitalmars-d-learn
On Monday, 14 March 2016 at 07:38:43 UTC, Russel Winder wrote: What we need here is a collection of people reviewing each others GtkD code and having a listing board somewhere on the GtkD site of all the codes available and what they show. It is the annotations as much as the code itself that

Re: Where do I learn to use GtkD

2016-03-13 Thread Gerald via Digitalmars-d-learn
On Sunday, 13 March 2016 at 19:53:35 UTC, karabuta wrote: On Sunday, 13 March 2016 at 19:34:36 UTC, WebFreak001 wrote: and in the (not quite complete) documentation you can find widgets you might want to use. Its a great place for getting ideas on which widgets to use imo.

Re: Where do I learn to use GtkD

2016-03-13 Thread Gerald via Digitalmars-d-learn
On Sunday, 13 March 2016 at 19:28:57 UTC, karabuta wrote: Any help on where I can get better leaning materials(GtkD)? Repo, blogs post, etc please I starting learning both D and GTK back in October, I found that a combination of looking at an example D GtkD app, Grestful

Re: the most D-ish GUI library

2016-03-13 Thread Gerald via Digitalmars-d
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: a) dlangui (https://github.com/buggins/dlangui I've never tried it, however having been down this road before (i.e. non-native widgets) with Java Swing I have no great desire to try something in a similar vein, so that ruled it

Re: Terminix 0.51.0 Released

2016-02-28 Thread Gerald via Digitalmars-d-announce
On Sunday, 28 February 2016 at 22:33:23 UTC, Mike Wey wrote: Great work. Thanks Mike, coming from you that's a real compliment. I really appreciate all your work on GtkD and the support you've given me in answering questions and dealing with issues.

Terminix 0.51.0 Released

2016-02-27 Thread Gerald via Digitalmars-d-announce
Terminix is a tiling Linux terminal emulator I've been working on designed for the Gnome 3 environment and using GtkD. This newest release fixes a number of bugs and adds some new features. I'm announcing it here primarily for D programmers interested in development using GtkD since this might

Re: Status icon on Linux

2016-02-20 Thread Gerald via Digitalmars-d-learn
On Saturday, 20 February 2016 at 11:36:11 UTC, Mike Wey wrote: The documentation states we should use notifications, that means i'll probably need to add libnotify bindings to GtkD. Though sending notifications using DBus is also possible. (https://developer.gnome.org/notification-spec/)

Re: Support for D in VSCode

2016-02-09 Thread Gerald via Digitalmars-d
On Tuesday, 9 February 2016 at 22:23:49 UTC, WebFreak001 wrote: Sounds awesome for the community! But for me this will probably be a real downside as we put so much work into our vscode extension already. In case someone didn't know: me and Wild made a D extension for vscode supporting dub

Re: Support for D in VSCode

2016-02-09 Thread Gerald via Digitalmars-d
On second blush maybe I am reading this wrong, as it is a "community requested extension" not "extension to be done by the community". Anyway, beyond adding a simple syntax highlighter, this would be a huge amount of work for MS to support fully and I'm not sure what it buys in comparison to

Re: How would you implement this in D? (signals & slots)

2016-02-02 Thread Gerald via Digitalmars-d-learn
On Monday, 1 February 2016 at 21:44:28 UTC, Enjoys Math wrote: On Monday, 1 February 2016 at 21:40:45 UTC, Enjoys Math wrote: module signals_and_slots; import std.algorithm: remove; [...] D's signals & slots: https://dlang.org/phobos/std_signals.html I looked at that and perhaps I'm not

Re: How would you implement this in D? (signals & slots)

2016-02-02 Thread Gerald via Digitalmars-d-learn
On Tuesday, 2 February 2016 at 15:59:06 UTC, Atila Neves wrote: Slots are named: the methods are slots. Signals can be named if you use only one struct as the parameter, as above. The signals would be String1 and String2, the slots watch1 and watch2. What I meant is that the connect call

Re: How do you draw in gtkD? Simple example overriding Widget.draw() doesn't compile.

2016-01-26 Thread Gerald via Digitalmars-d-learn
Generally don't override methods in GtkD, use event handlers like addOnDraw. Because GtkD wraps GTK functions an overriden D method of GtkD will never get called by GTK since it is working with the underlying C functions directly.

Re: Localization (i18n) Options

2016-01-24 Thread Gerald via Digitalmars-d
On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote: Please, write a HowTo some where. GtkD lack of documentation it's very anoying. I've gotten this going with Terminix and posted some information what it took to get it going here: http://gexperts.com/wp/gtkd-and-localization/

Re: Localization (i18n) Options

2016-01-18 Thread Gerald via Digitalmars-d
On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote: On Sunday, 17 January 2016 at 03:03:14 UTC, Gerald wrote: On Sunday, 17 January 2016 at 02:51:30 UTC, Gerald wrote: Are there any other options out there that I might not be aware of? And of course, 10 minutes later you stumble across a

Re: Localization (i18n) Options

2016-01-16 Thread Gerald via Digitalmars-d
On Sunday, 17 January 2016 at 02:51:30 UTC, Gerald wrote: Are there any other options out there that I might not be aware of? And of course, 10 minutes later you stumble across a potential option. Looks like GLib exposes gettext and GtkD does wrap it so I'll play around with that and see if

Localization (i18n) Options

2016-01-16 Thread Gerald via Digitalmars-d
I have a GtkD application for Linux where I would like to support localization. The current options in D seem pretty limited with the most recent being i18n-d (https://github.com/JakobOvrum/i18n-d). My code is structured for GNU gettext but I could make the effort and convert it to the way

Re: GTKD - Write Pixbuf back to context

2016-01-07 Thread Gerald via Digitalmars-d-learn
https://developer.gnome.org/gtkmm-tutorial/stable/sec-draw-images.html.en Does this work for you?

Re: TIOBE December 2015 - D rose 5 positions

2016-01-05 Thread Gerald via Digitalmars-d
On Tuesday, 5 January 2016 at 17:10:51 UTC, rsw0x wrote: D's GC is a failure, the amount of effort needed/given to work around it should be proof enough of this. Coming from a Java background and being an application rather then systems developer one thing that attracted me to D was the

Re: What are you planning for 2016?

2016-01-05 Thread Gerald via Digitalmars-d
On Tuesday, 5 January 2016 at 14:10:20 UTC, Adam D. Ruppe wrote: On Tuesday, 5 January 2016 at 13:43:32 UTC, Gerald wrote: * Finish my tiling terminal emulator, terminix (https://github.com/gnunn1/terminix) ooh, I wrote a terminal emulator too a while ago:

Re: What are you planning for 2016?

2016-01-05 Thread Gerald via Digitalmars-d
Keep working on Linux GTK applications using GtkD including: * Finish my tiling terminal emulator, terminix (https://github.com/gnunn1/terminix) * Take a shot at doing a Linux chat/IM application following the gnome-chat design

Re: Regex benchmarks in Rust, Scala, D and F#

2016-01-05 Thread Gerald via Digitalmars-d
On Tuesday, 5 January 2016 at 18:21:39 UTC, Basile B. wrote: On Tuesday, 5 January 2016 at 18:19:23 UTC, Gerald wrote: I notice he's using readln() instead of readln(buf) in the D solution, would having D re-use the buffer make a substantial improvement in performance? Yep. It's a

Re: Regex benchmarks in Rust, Scala, D and F#

2016-01-05 Thread Gerald via Digitalmars-d
On Tuesday, 5 January 2016 at 17:52:39 UTC, Karthikeyan wrote: Hi, Came across this post in rust-lang subreddit about the regex benchamrks. Scala surprisingly outperforms D. LDC also gives a good advantage for efficiency of D.

Re: Threading to prevent GUI Freeze

2016-01-04 Thread Gerald via Digitalmars-d-learn
On Monday, 4 January 2016 at 18:04:34 UTC, TheDGuy wrote: On Monday, 4 January 2016 at 17:33:28 UTC, Gerald wrote: On Monday, 4 January 2016 at 16:13:50 UTC, TheDGuy wrote: [...] Yes, you need it. The extern (C) function is what GDK invokes on idle. In any GUI application there is a lot of

Re: Threading to prevent GUI Freeze

2016-01-04 Thread Gerald via Digitalmars-d-learn
On Monday, 4 January 2016 at 15:28:56 UTC, TheDGuy wrote: On Monday, 4 January 2016 at 15:07:12 UTC, Luis wrote: On Monday, 4 January 2016 at 14:31:04 UTC, TheDGuy wrote: [...] Before doing anything with threads and GTK, you should read this :

Re: Threading to prevent GUI Freeze

2016-01-04 Thread Gerald via Digitalmars-d-learn
On Monday, 4 January 2016 at 16:13:50 UTC, TheDGuy wrote: Thanks for your example code. Do i need those extern (C) function? Yes, you need it. The extern (C) function is what GDK invokes on idle. In any GUI application there is a lot of idle time waiting for events, what the addThreadIdle

Re: Getting GtkD to work on OSX

2015-11-28 Thread Gerald via Digitalmars-d-learn
On Saturday, 28 November 2015 at 10:26:58 UTC, Mike McKee wrote: I have GtkD working just fine on Ubuntu Linux. Now I'm trying to get it to work on my Mac with the same hello.d codebase and hello.glade file. (Demo here: http://stackoverflow.com/a/32535987/105539) What's the procedure to

Re: What keeps you from using gtkd or dlangui

2015-10-06 Thread Gerald via Digitalmars-d
On Sunday, 4 October 2015 at 13:24:23 UTC, karabuta wrote: In YHO, what keeps you from using any of those fully(mostly)? Gtkd first, followed by dlangui. I need to know what I am signing up for. I'm working on a search utility using gtkd, it's essentially a GUI for grep. I was using a

Re: Regex start/end position of match?

2015-10-01 Thread Gerald via Digitalmars-d-learn
Thanks Adam, that was the hint I needed. For a given RegexMatch the pre().length() is essentially equivalent to the start position and taking pre().length + hit.length() gives the end position so I think this should be OK for my needs.

Regex start/end position of match?

2015-09-30 Thread Gerald via Digitalmars-d-learn
I'm using the std.regex API as part of Linux GUI grep utility I'm trying to create. I've got the GUI going fine using gtkd, the code to iterate over files (wow that was succinct in D, very impressive!), and getting matches via regex using the matchAll function. I'm stuck though on how to get