Re: Proposal: Recommend meson for glib 2.58.0

2018-06-01 Thread Christian Hergert
On 06/01/2018 08:10 AM, xclae...@gmail.com wrote: > Disclaimer: I'm not a GLib maintainer so this email is only about > opening the discussion. There is no decision made yet. > > Opinions? I think the risk area is python3 support on some commercially supported distributions. Although, that is

Re: Proposal: Recommend meson for glib 2.58.0

2018-06-01 Thread Emmanuele Bassi
With Python 2.x getting EOL in less than 2 years, I suspect that commercial distros will need to provide Python 3 pretty quickly. Ciao, Emmanuele. On Fri, 1 Jun 2018 at 21:10, Christian Hergert wrote: > On 06/01/2018 08:10 AM, xclae...@gmail.com wrote: > > Disclaimer: I'm not a GLib

Proposal: Recommend meson for glib 2.58.0

2018-06-01 Thread xclaesse
Hi, Things are looking pretty well with meson in GLib master. We have CI working for pretty much all interesting platforms (more to come) and there are only a few remaining issues with "Meson" tag in gitlab[1]. I think the longer we keep 2 build systems, the more time we waste on useless tasks.

Re: guchar * sometimes a utf8, sometimes utf16?

2018-06-01 Thread Emmanuele Bassi
Hi; this mailing list is not for the GTK port of WebKit; you should ask on: https://lists.webkit.org/mailman/listinfo/webkit-gtk Ciao, Emmanuele. On 31 May 2018 at 23:04, Leo Ufimtsev wrote: > Hello guys, > > The following method: > guchar * webkit_web_resource_get_data_finish(..) > >

Re: Can a GtkApplicationWindow have both a menubar AND a toolbar?

2018-06-01 Thread c . buhtz
Please show us a minimal working example. Give us code to show us what you have tried so far. And doesn't it had to be a GtkApplicationWindow? Why not using a simpler GtkWindow? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Undefined reference to g_file_load_bytes()

2018-06-01 Thread Emmanuele Bassi
Hi; g_file_load_bytes() is available since GLib 2.56: https://developer.gnome.org/gio/stable/GFile.html#g-file-load-bytes so you'll need to make sure that the version of GLib provided by MSYS2 is new enough if you want to use that method. Ciao, Emmanuele. On 1 June 2018 at 01:21, PC

guchar * sometimes a utf8, sometimes utf16?

2018-06-01 Thread Leo Ufimtsev
Hello guys, The following method: guchar * webkit_web_resource_get_data_finish(..) Sometimes returns utf8 and sometimes utf16. Is there a way to tell them apart? Thank you. -- Leo Ufimtsev, Software Engineer, Red Hat ___ gtk-app-devel-list mailing

Undefined reference to g_file_load_bytes()

2018-06-01 Thread PC Buddies
During my application programming, I had to use the GIO function g_file_load_bytes(). I have my GTK+ installation installed from MSYS (the new method) so I obviously have GIO. I previously even used g_file_load_contents() without problems, but now, it weirdly doesn't find definition for

Re: This takes 30 secs to render

2018-06-01 Thread Eric Cashon via gtk-app-devel-list
The other way to go about it is to just use cairo. I don't think that it will give a speed improvement but it might be worth a try. I figure you are trying to scale the png first and then draw it in a widget. Once the image is sized it shouldn't be a problem to draw quickly. Eric //gcc

Re: PyGObject: pep8 konform

2018-06-01 Thread James Cameron
Code that uses PyGObject can't be PEP8 conformant without generating version warnings. My practice is to minimise E402 by moving imports, then add .flake8 file with; [flake8] # E402 module level import not at top of file # gi.require_version() is required before later imports ignore = E402 --

Re: Link Gtk.ListStore to the real data

2018-06-01 Thread c . buhtz
I opened a question on StackOverflow about this and created a (not so) minimal working example for it there. https://stackoverflow.com/q/50643938/4865723 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

PyGObject: pep8 konform

2018-06-01 Thread c . buhtz
How do I make PyGObject code PEP8 konform? e.g. #!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk This code causes E402 module level import not at top of file E402 module level import not at top of file

Re: PyGObject: pep8 konform

2018-06-01 Thread Gergely Polonkai
My take would be to ignore this specific line with a magic comment. Or, if you really donʼt want to d that, a from importlib import import_module # isnʼt that line wonderful? Gtk = import_module('gi.repository.Gtk') might do the trick. (Note that I wrote it without having Python at hand; maybe

Re: Undefined reference to g_file_load_bytes()

2018-06-01 Thread pspgen
- Цитат от Emmanuele Bassi (eba...@gmail.com), на 01.06.2018 в 11:20 - Hi; g_file_load_bytes() is available since GLib 2.56: https://developer.gnome.org/gio/stable/GFile.html#g-file-load-bytes so you'll need to make sure that the version of GLib provided by MSYS2 is new enough