Re: GtkD 3.0-beta

2015-03-10 Thread Kagamin via Digitalmars-d-announce

On Monday, 9 March 2015 at 18:48:53 UTC, captaindet wrote:
after original  package installation  setup  whatnot, will i 
end up with a dedicated gtk3 folder


msys provides pacman and gtk3 package to fetch (and build?).


Re: DlangIDE

2015-03-10 Thread Vadim Lopatin via Digitalmars-d-announce

On Friday, 6 February 2015 at 14:03:07 UTC, Vadim Lopatin wrote:

Hello,

I'm working on cross-platform D language IDE - DlangIDE.
It's written in D using DlangUI based GUI.

Project on GitHub: https://github.com/buggins/dlangide

It's in alpha stage but already allows:

* Open DUB based projects
* Edit source files
* Build and run projects using DUB
* D source code syntax highlight

Requires DUB for building projects.

Features missing so far:

* Debugging support
* Code completion
* Code folding
* Go to definition
* Smart indentation



Recent changes in DlangIDE:

Settings dialog added (editor settings and UI options, including 
options for tuning of font rendering)

Dark theme implemented (available for all DlangUI apps as well)
Search feature - contributed by Freakazo

Best regards,
Vadim


Re: This Week in D #8: ddmd progressing, moving toward release.

2015-03-10 Thread via Digitalmars-d-announce

On Monday, 9 March 2015 at 13:33:16 UTC, Adam D. Ruppe wrote:
I ran out of my backlog and haven't had the time to write up 
new ones the last couple weeks because of other obligations 
eating up all my time (this week, I had to travel for a work


Don't wear yourself out on a weekly deadline, maybe a bi-weekly 
issue would be equally good?


Re: GtkD 3.0-beta

2015-03-10 Thread jollie via Digitalmars-d-announce
On Mon, 09 Mar 2015 13:48:54 -0500, captaindet wrote:

 thanks for the info. however, i am not familiar with this project. to be 
 honest, it is not quite clear to me what MSYS2 is good for or who would need 
 it. the dox are very slim. so before i dig too deep into what looks like a 
 lot of trouble/work, may i ask you this:
 
 after original  package installation  setup  whatnot, will i end up with a 
 dedicated gtk3 folder somewhere that acts as a (self-sufficient) runtime 
 environment - i.e., will i be able to just zip this folder, distribute it to 
 colleagues, unzip it and set the windows path to include the gtk/bin and then 
 gkt 3.14+ can be used on this computer?
 
 if not, MSYS2 would be of no use to me.
 
 /det


http://sourceforge.net/projects/msys2/

click Files tab you will see Base and REPOS.
click Base and you will see X86_64 and i686.

which version of msys2 do you want/need?
if you need 64bit select x86_64
else
if you need 32bit select i686

There is an installer you can use, I opt to use
the tar.xz file and unpack it in the root dir
to avoid spaces in dir/filenames.

Run the Drive:\{msys32,msys64}\msys2_shell.bat file.
It will initialize some things then you close window
when done.

Run the Drive:\{msys32,msys64}\msys2_shell.bat file
again use pacman package manager to install packages.

type the following pacman command to download gtk3
and its dependencies.

$ pacman -S mingw-w64-i686-gtk3
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mingw-w64-i686-harfbuzz will be installed before its 
mingw-w64-i686-freetype dependency
warning: dependency cycle detected:
warning: mingw-w64-i686-cairo will be installed before its 
mingw-w64-i686-freetype dependency
warning: dependency cycle detected:
warning: mingw-w64-i686-fontconfig will be installed before its 
mingw-w64-i686-freetype dependency

Packages (42) db-5.3.28-2  gdbm-1.11-3  libdb-5.3.28-2  libgdbm-1.11-3
  mingw-w64-i686-adwaita-icon-theme-3.15.1-1
  mingw-w64-i686-atk-2.15.4-1  mingw-w64-i686-bzip2-1.0.6-3
  mingw-w64-i686-cairo-1.14.0-3  mingw-w64-i686-expat-2.1.0-4
  mingw-w64-i686-fontconfig-2.11.1-3
  mingw-w64-i686-freetype-2.5.5-3  mingw-w64-i686-gcc-libs-4.9.2-4
  mingw-w64-i686-gdk-pixbuf2-2.31.1-2
  mingw-w64-i686-gettext-0.19.4-2  mingw-w64-i686-glib2-2.42.2-2
  mingw-w64-i686-gmp-6.0.0-2  mingw-w64-i686-gnome-common-3.14.0-1
  mingw-w64-i686-harfbuzz-0.9.39-1
  mingw-w64-i686-hicolor-icon-theme-0.14-1
  mingw-w64-i686-icon-naming-utils-0.8.90-1
  mingw-w64-i686-jasper-1.900.1-3  mingw-w64-i686-jbigkit-2.1-1
  mingw-w64-i686-json-glib-1.0.2-2  mingw-w64-i686-libcroco-0.6.8-2
  mingw-w64-i686-libffi-3.2.1-2  mingw-w64-i686-libiconv-1.14-3
  mingw-w64-i686-libjpeg-turbo-1.4.0-2
  mingw-w64-i686-libpng-1.6.16-1  mingw-w64-i686-librsvg-2.40.6-1
  mingw-w64-i686-libtiff-4.0.3-4
  mingw-w64-i686-libwinpthread-git-5.0.0.4455.32db221-1
  mingw-w64-i686-libxml2-2.9.2-5  mingw-w64-i686-lzo2-2.09-1
  mingw-w64-i686-pango-1.36.8-2  mingw-w64-i686-pixman-0.32.6-2
  mingw-w64-i686-shared-mime-info-1.4-1  mingw-w64-i686-xz-5.2.1-1
  mingw-w64-i686-zlib-1.2.8-6  perl-5.20.2-1
  perl-XML-Parser-2.43-1  perl-XML-Simple-2.20-2
  mingw-w64-i686-gtk3-3.14.9-2

Total Installed Size:  229.98 MiB

:: Proceed with installation? [Y/n]

Type Y and pacman will download and install gtk3
in the Drive:\{msys32,msys64}\{mingw32,mingw64}
folder.

Pack the appropriate mingw{32,64} folder and you
have a gtk3 runtime. (this will include c library
and include files, I will leave it to you to 
separate the wheat from the chaff).

Alternatively, I just set my path to include 
Drive:\{msys32,msys64}\{mingw32,mingw64}\bin,
then use pacman to update my files.



Re: This Week in D #8: ddmd progressing, moving toward release.

2015-03-10 Thread ponce via Digitalmars-d-announce

On Tuesday, 10 March 2015 at 09:24:54 UTC, wobbles wrote:

On Tuesday, 10 March 2015 at 08:06:18 UTC, ponce wrote:

On Monday, 9 March 2015 at 22:29:42 UTC, amber wrote:


There are a bunch of good tips here:

http://p0nce.github.io/d-idioms/

If the author(s) are OK with the idea you could use this as a 
source of tips for a few weeks.


bye,
amber


Course I'm ok with it.


This must have been been updated since I last read it. The 
first GC paragraph is very good! :)


Thanks! You are welcome to suggest new idioms and tips.


Re: GtkD 3.0-beta

2015-03-10 Thread captaindet via Digitalmars-d-announce

On 2015-03-10 10:56, jollie wrote:

On Mon, 09 Mar 2015 13:48:54 -0500, captaindet wrote:


thanks for the info. however, i am not familiar with this project. to be 
honest, it is not quite clear to me what MSYS2 is good for or who would need 
it. the dox are very slim. so before i dig too deep into what looks like a lot 
of trouble/work, may i ask you this:

after original  package installation  setup  whatnot, will i end up with a 
dedicated gtk3 folder somewhere that acts as a (self-sufficient) runtime environment - 
i.e., will i be able to just zip this folder, distribute it to colleagues, unzip it and set 
the windows path to include the gtk/bin and then gkt 3.14+ can be used on this computer?

if not, MSYS2 would be of no use to me.

/det



http://sourceforge.net/projects/msys2/

click Files tab you will see Base and REPOS.
click Base and you will see X86_64 and i686.

which version of msys2 do you want/need?
if you need 64bit select x86_64
else
if you need 32bit select i686

There is an installer you can use, I opt to use
the tar.xz file and unpack it in the root dir
to avoid spaces in dir/filenames.

Run the Drive:\{msys32,msys64}\msys2_shell.bat file.
It will initialize some things then you close window
when done.

Run the Drive:\{msys32,msys64}\msys2_shell.bat file
again use pacman package manager to install packages.

type the following pacman command to download gtk3
and its dependencies.

$ pacman -S mingw-w64-i686-gtk3
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mingw-w64-i686-harfbuzz will be installed before its 
mingw-w64-i686-freetype dependency
warning: dependency cycle detected:
warning: mingw-w64-i686-cairo will be installed before its 
mingw-w64-i686-freetype dependency
warning: dependency cycle detected:
warning: mingw-w64-i686-fontconfig will be installed before its 
mingw-w64-i686-freetype dependency

Packages (42) db-5.3.28-2  gdbm-1.11-3  libdb-5.3.28-2  libgdbm-1.11-3
   mingw-w64-i686-adwaita-icon-theme-3.15.1-1
   mingw-w64-i686-atk-2.15.4-1  mingw-w64-i686-bzip2-1.0.6-3
   mingw-w64-i686-cairo-1.14.0-3  mingw-w64-i686-expat-2.1.0-4
   mingw-w64-i686-fontconfig-2.11.1-3
   mingw-w64-i686-freetype-2.5.5-3  mingw-w64-i686-gcc-libs-4.9.2-4
   mingw-w64-i686-gdk-pixbuf2-2.31.1-2
   mingw-w64-i686-gettext-0.19.4-2  mingw-w64-i686-glib2-2.42.2-2
   mingw-w64-i686-gmp-6.0.0-2  mingw-w64-i686-gnome-common-3.14.0-1
   mingw-w64-i686-harfbuzz-0.9.39-1
   mingw-w64-i686-hicolor-icon-theme-0.14-1
   mingw-w64-i686-icon-naming-utils-0.8.90-1
   mingw-w64-i686-jasper-1.900.1-3  mingw-w64-i686-jbigkit-2.1-1
   mingw-w64-i686-json-glib-1.0.2-2  mingw-w64-i686-libcroco-0.6.8-2
   mingw-w64-i686-libffi-3.2.1-2  mingw-w64-i686-libiconv-1.14-3
   mingw-w64-i686-libjpeg-turbo-1.4.0-2
   mingw-w64-i686-libpng-1.6.16-1  mingw-w64-i686-librsvg-2.40.6-1
   mingw-w64-i686-libtiff-4.0.3-4
   mingw-w64-i686-libwinpthread-git-5.0.0.4455.32db221-1
   mingw-w64-i686-libxml2-2.9.2-5  mingw-w64-i686-lzo2-2.09-1
   mingw-w64-i686-pango-1.36.8-2  mingw-w64-i686-pixman-0.32.6-2
   mingw-w64-i686-shared-mime-info-1.4-1  mingw-w64-i686-xz-5.2.1-1
   mingw-w64-i686-zlib-1.2.8-6  perl-5.20.2-1
   perl-XML-Parser-2.43-1  perl-XML-Simple-2.20-2
   mingw-w64-i686-gtk3-3.14.9-2

Total Installed Size:  229.98 MiB

:: Proceed with installation? [Y/n]

Type Y and pacman will download and install gtk3
in the Drive:\{msys32,msys64}\{mingw32,mingw64}
folder.

Pack the appropriate mingw{32,64} folder and you
have a gtk3 runtime. (this will include c library
and include files, I will leave it to you to
separate the wheat from the chaff).

Alternatively, I just set my path to include
Drive:\{msys32,msys64}\{mingw32,mingw64}\bin,
then use pacman to update my files.


thanks a lot, jollie, for the detailed description. i tried as advised, the 
shell output was a bit different than in your example, i guess because i 
installed the 32 bit version and your example was probably for 64bit.

the problem though is that my GTK application lost most icons and there are 
tons of warning/critical messages (repeating every time i move the mouse):

Gtk-WARNING **: Error loading theme icon 'help-contents' for stock: Icon 
'help-contents' not present in theme

Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 
'image-missing' not present in theme

GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF 
(pixbuf)' failed

GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' 
failed



any idea how to fix this?

cheers,

det


Re: GtkD 3.0-beta

2015-03-10 Thread Mengu via Digitalmars-d-announce

On Saturday, 7 March 2015 at 21:14:36 UTC, Mike Wey wrote:
I'm glad to announce the first GtkD release that makes use of 
the new gir based generator.
The generator was rebuild from the ground up since the old one 
was no longer usable with the new GTK+ documentation.


For a list of changes see the changelog: 
http://gtkd.org/changelog.html
There is also an list of the breaking changes on the wiki: 
https://github.com/gtkd-developers/GtkD/wiki/GtkD-2-vs-GtkD-3


Download: http://gtkd.org/Downloads/sources/GtkD-3.0.0-beta.zip


i was building a text editor* with D back in 2010 and i was using 
gtkD. mike was always there to help and answer my n00b questions. 
thank you for supporting this library and your users for years 
mike. thank you. it really means a lot.


* nope, never finished.


Re: GtkD 3.0-beta

2015-03-10 Thread Mike Wey via Digitalmars-d-announce

On 03/10/2015 09:41 PM, captaindet wrote:

GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)'
failed

Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion
'GDK_IS_PIXBUF (pixbuf)' failed

GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT
(object)' failed



any idea how to fix this?

cheers,

det


The CRITICAL errors could be due to changes in the ObjectG memory handling.

--
Mike Wey


Re: GtkD 3.0-beta

2015-03-10 Thread jollie via Digitalmars-d-announce
On Tue, 10 Mar 2015 15:41:54 -0500, captaindet wrote:

 thanks a lot, jollie, for the detailed description. i tried as advised,
 the shell output was a bit different than in your example, i guess
 because i installed the 32 bit version and your example was probably for
 64bit.


I have been using both 32 and 64 bit msys2.  For this example, I was using
i686(32bit).  If your machine is a 32bit machine use i686 or x86_64 for a
64bit machine. Once msys2 is installed, you can download 32bit or 64bit
mingw_w64 packages. In this example C:\msys32\mingw32

 the problem though is that my GTK application lost most icons and there
 are tons of warning/critical messages (repeating every time i move the
 mouse):

Most likely, the adwaita theme was not installed. Try to download the icon
themes again.

This will say [installed] if theme is installed. Here I have both 32/64 bit.
$ pacman -Ss adwaita
mingw32/mingw-w64-i686-adwaita-icon-theme 3.15.1-1 (mingw-w64-i686-gnome) 
[installed]
GNOME icon theme (mingw-w64)
mingw64/mingw-w64-x86_64-adwaita-icon-theme 3.15.1-1 (mingw-w64-x86_64-gnome) 
[installed]
GNOME icon theme (mingw-w64)

If not type:
$ pacman -S mingw-w64-i686-adwaita-icon-theme mingw-w64-i686-hicolor-icon-theme


jollie


Re: This Week in D #8: ddmd progressing, moving toward release.

2015-03-10 Thread ponce via Digitalmars-d-announce

On Monday, 9 March 2015 at 22:29:42 UTC, amber wrote:

On Monday, 9 March 2015 at 13:33:16 UTC, Adam D. Ruppe wrote:
On Monday, 9 March 2015 at 07:08:42 UTC, Dominikus Dittes 
Scherkl wrote:
Nice, but I'm missing the tip of the week (also with issue 
#7).

Already out of ideas?


I ran out of my backlog and haven't had the time to write up 
new ones the last couple weeks because of other obligations 
eating up all my time (this week, I had to travel for a work 
thing... then got trapped mid way by that winter storm hitting 
Baltimore and Philadelphia), so I try to release this with 
something rather than nothing when that happens.


When I have a few extra hours, I'll write up tip or project 
spotlights for the next month including the UTF decoding in 
foreach and phobos, moving forward with the little game using 
my libraries, and whatever else pops up in the chat or 
something that I feel like talking about.


There are a bunch of good tips here:

http://p0nce.github.io/d-idioms/

If the author(s) are OK with the idea you could use this as a 
source of tips for a few weeks.


bye,
amber


Course I'm ok with it.


Re: This Week in D #8: ddmd progressing, moving toward release.

2015-03-10 Thread wobbles via Digitalmars-d-announce

On Tuesday, 10 March 2015 at 08:06:18 UTC, ponce wrote:

On Monday, 9 March 2015 at 22:29:42 UTC, amber wrote:

On Monday, 9 March 2015 at 13:33:16 UTC, Adam D. Ruppe wrote:
On Monday, 9 March 2015 at 07:08:42 UTC, Dominikus Dittes 
Scherkl wrote:
Nice, but I'm missing the tip of the week (also with issue 
#7).

Already out of ideas?


I ran out of my backlog and haven't had the time to write up 
new ones the last couple weeks because of other obligations 
eating up all my time (this week, I had to travel for a work 
thing... then got trapped mid way by that winter storm 
hitting Baltimore and Philadelphia), so I try to release this 
with something rather than nothing when that happens.


When I have a few extra hours, I'll write up tip or project 
spotlights for the next month including the UTF decoding in 
foreach and phobos, moving forward with the little game using 
my libraries, and whatever else pops up in the chat or 
something that I feel like talking about.


There are a bunch of good tips here:

http://p0nce.github.io/d-idioms/

If the author(s) are OK with the idea you could use this as a 
source of tips for a few weeks.


bye,
amber


Course I'm ok with it.


This must have been been updated since I last read it. The first 
GC paragraph is very good! :)