Re: gio enhancement.

2017-04-13 Thread Sébastien Wilmet
Hi,

On Thu, Apr 13, 2017 at 10:14:08AM +0200, Bruggemann Eddie wrote:
> Or For multimedia files (Video, Music, Image) providing a way to access the
> meta-data:
> 
> in a type like this:
> 
> GMediaFileInfo
> 
> ---
> 
> Else because Gtk has a library for the font (pango) for drawing (cairo) for
> images (gdk_pixbuf), and so on...
> 
> Why not get a library for playing sounds ?

GStreamer [1] can be used for media files metadata and for playing
sounds. For image metadata, I don't know, but you can look at the code
of eog [2] for example to see how it retrieves the image properties.

[1] https://gstreamer.freedesktop.org/
[2] https://wiki.gnome.org/Apps/EyeOfGnome

--
Sébastien
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: gio enhancement.

2017-04-13 Thread Philip Withnall
Hi,

On Thu, 2017-04-13 at 10:14 +0200, Bruggemann Eddie wrote:
> Hi to everybody,
> 
> Some ideas for enhance GIO.
> 
> ---
> 
> Why not include encrypting into GIO per example a function:
> 
> ```C
> 
> GFile *g_file_encrypt(GFile *file, GEnryptAlgo algorithm) ;
> 
> ```
> 
> ---
> 
> Or For multimedia files (Video, Music, Image) providing a way to
> access 
> the meta-data:
> 
> in a type like this:
> 
> GMediaFileInfo
> 
> ---
> 
> Else because Gtk has a library for the font (pango) for drawing
> (cairo) 
> for images (gdk_pixbuf), and so on...
> 
> Why not get a library for playing sounds ?

GStreamer exists for playing sounds. Putting functionality for
encryption or playing sounds into GIO itself would pull in a lot of
code which would not be used by most projects which depend on GIO.

Instead, you should be looking at adding functions to those libraries
which take a GFile as a parameter.

Are you looking to fill a specific gap in functionality for a project
you’re working on?

Philip

signature.asc
Description: This is a digitally signed message part
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: how to customise gtk-doc output

2017-04-13 Thread Stefan Sauer
On 04/12/2017 03:14 PM, jcup...@gmail.com wrote:
> On 12 April 2017 at 13:23, Sébastien Wilmet  wrote:
>> On Wed, Apr 05, 2017 at 10:24:00AM +0100, jcup...@gmail.com wrote:
>>> I'd like to customise the gtk-doc output for my project: I'd like a
>>> new header, and some tracker stuff in the footer.
>>> xslt and the configure options to gtk-doc?
>> I don't know how it is done on developer.gnome.org, but it should be
>> implemented somewhere in
>> https://git.gnome.org/browse/library-web/
> Oh nice, I didn't find that, thanks! Yes, it seems they have some
> fancy Python to reformat the pages.
>
> I ended up doing something very simple. This line of Ruby:
>
> template.at_css(".main-content").children = doc.at_css("body").children
>
> Just takes everything inside  and drops it into a standard
> github pages template, making (for example) this:
>
> http://jcupitt.github.io/libvips/API/current/VipsImage.html
>
> Reformatter here:
>
> https://github.com/jcupitt/libvips/blob/gh-pages/gen-api.rb
>
> John
> ___
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-devel-list

We're rewriting gtk-doc into python right now. This will also turn this
more into a toolkit/library. One of the steps is to make the
headers/footers customizable. Right now they are generated by the
docbook stylesheets and this makes it slow. Feel free to file a bug an
mention what changes you did. This will help me to design this features.

Stefan

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: how to customise gtk-doc output

2017-04-13 Thread jcupitt
Hi Stefan,

> headers/footers customizable. Right now they are generated by the
> docbook stylesheets and this makes it slow. Feel free to file a bug an
> mention what changes you did. This will help me to design this features.

OK, bug here:

https://bugzilla.gnome.org/show_bug.cgi?id=781291

John
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list