Re: Weather API

2017-02-23 Thread infirit
Op 02/23/2017 om 12:37 PM schreef Emmanuele Bassi:
>> Yeah gnome documentation sucks.
> You may want to avoid insulting people that work really hard at
> writing the documentation.

Why would anyone be insulted with me stating a fact that has been true
for over a decade. Also it does not say anything about the work that
people have done on it, it says more on how much the api docs suck.
Ignoring for the moment proper developer documentation with buildable
examples.

And lets have a look how much work has been done on the libgweather
documentation.. Last commit is for the api docs is almost 2 years ago
and looking at how broken they are today it seems nobody from the gnome
team cares. Don't you think it is a shame that the python binding api
docs for libgweather is better than the official ones? So I have no
problem is saying gnome documentation sucks.

~infirit

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


Re: Weather API

2017-02-23 Thread Rúben Rodrigues
Hi,
Thanks all. I'm new in gtk+ so it's dificult to understand how to use 
this library without documentation or examples..Anyone could help me?

Again,  thanks everyone.



Às 11:08 de 23/02/2017, infirit escreveu:
> Op 02/22/2017 om 07:44 PM schreef Norbert de Jonge:
>>> gnome-weather [...] I can i use this libraries with C?
>> I think, in theory, the GWeather Reference Manual...
>> https://developer.gnome.org/libgweather/stable/
>> ...should have information about its C functions in the Functions
>> sections. But they are empty, e.g.:
>> https://developer.gnome.org/libgweather/stable/GWeatherLocationEntry.html
>> Maybe someone needs to run GTK-Doc to create the manual?
> Yeah gnome documentation sucks.
>
> A reasonable C example can be found in gnome-applets [1].
>
> ~infirit
>
> [1] https://git.gnome.org/browse/gnome-applets/tree/gweather


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

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

Re: Weather API

2017-02-23 Thread Emmanuele Bassi
On 23 February 2017 at 11:08, infirit  wrote:
> Op 02/22/2017 om 07:44 PM schreef Norbert de Jonge:
>>> gnome-weather [...] I can i use this libraries with C?
>> I think, in theory, the GWeather Reference Manual...
>> https://developer.gnome.org/libgweather/stable/
>> ...should have information about its C functions in the Functions
>> sections. But they are empty, e.g.:
>> https://developer.gnome.org/libgweather/stable/GWeatherLocationEntry.html
>> Maybe someone needs to run GTK-Doc to create the manual?
>
> Yeah gnome documentation sucks.

You may want to avoid insulting people that work really hard at
writing the documentation.

You may also want to contribute to the GWeather API reference, since "it sucks".

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Weather API

2017-02-23 Thread infirit
Op 02/22/2017 om 07:44 PM schreef Norbert de Jonge:
>> gnome-weather [...] I can i use this libraries with C?
> I think, in theory, the GWeather Reference Manual...
> https://developer.gnome.org/libgweather/stable/
> ...should have information about its C functions in the Functions
> sections. But they are empty, e.g.:
> https://developer.gnome.org/libgweather/stable/GWeatherLocationEntry.html
> Maybe someone needs to run GTK-Doc to create the manual?

Yeah gnome documentation sucks.

A reasonable C example can be found in gnome-applets [1].

~infirit

[1] https://git.gnome.org/browse/gnome-applets/tree/gweather
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Weather API

2017-02-22 Thread Norbert de Jonge
> gnome-weather [...] I can i use this libraries with C?

I think, in theory, the GWeather Reference Manual...
https://developer.gnome.org/libgweather/stable/
...should have information about its C functions in the Functions
sections. But they are empty, e.g.:
https://developer.gnome.org/libgweather/stable/GWeatherLocationEntry.html
Maybe someone needs to run GTK-Doc to create the manual?

Installing libgweather-3-dev does not give me a man page for, for
instance, gweather_info_get_wind() either.

This seems to have some docs though:
https://lazka.github.io/pgi-docs/GWeather-3.0/index.html

Best regards,
Norbert
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Weather API

2017-02-22 Thread Hashem Nasarat
The three libraries are in C. gnome-weather is written in javascript and 
uses the gobject-introspection (gi) middleware to call into the C 
libraries. The syntax is different but semantics are the same as a 
client program written in C.


On 02/22/2017 01:15 PM, Rúben Rodrigues wrote:

Hi,

Thanks for the answer. In gnome-weather source files i don't see any
code in C language. I can i use this libraries with C?

Thanks


Às 17:36 de 22/02/2017, Hashem Nasarat escreveu:

Hi Ruben,

Perhaps this link would be useful to you:
https://wiki.gnome.org/Projects/LibGWeather

Essentially try using libgweather with geoclue and geocode-glib.

You can also look at the gnome-weather source code to see how it is
all used.

Good luck!
-Hashem

On 02/22/2017 12:28 PM, Rúben Rodrigues wrote:

Hi,

Someone could tell me which API i can use to display weather information
in my application? It is possible to detect location based on internet
connection?

Thanks


---
Este e-mail foi verificado em termos de vírus pelo software antivírus
Avast.
https://www.avast.com/antivirus

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




---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus


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

Re: Weather API

2017-02-22 Thread Rúben Rodrigues
Hi,

Thanks for the answer. In gnome-weather source files i don't see any 
code in C language. I can i use this libraries with C?

Thanks


Às 17:36 de 22/02/2017, Hashem Nasarat escreveu:
> Hi Ruben,
>
> Perhaps this link would be useful to you: 
> https://wiki.gnome.org/Projects/LibGWeather
>
> Essentially try using libgweather with geoclue and geocode-glib.
>
> You can also look at the gnome-weather source code to see how it is 
> all used.
>
> Good luck!
> -Hashem
>
> On 02/22/2017 12:28 PM, Rúben Rodrigues wrote:
>> Hi,
>>
>> Someone could tell me which API i can use to display weather information
>> in my application? It is possible to detect location based on internet
>> connection?
>>
>> Thanks
>>
>>
>> ---
>> Este e-mail foi verificado em termos de vírus pelo software antivírus 
>> Avast.
>> https://www.avast.com/antivirus
>>
>> ___
>> gtk-app-devel-list mailing list
>> gtk-app-devel-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

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

Re: Weather API

2017-02-22 Thread Hashem Nasarat

Hi Ruben,

Perhaps this link would be useful to you: 
https://wiki.gnome.org/Projects/LibGWeather


Essentially try using libgweather with geoclue and geocode-glib.

You can also look at the gnome-weather source code to see how it is all 
used.


Good luck!
-Hashem

On 02/22/2017 12:28 PM, Rúben Rodrigues wrote:

Hi,

Someone could tell me which API i can use to display weather information
in my application? It is possible to detect location based on internet
connection?

Thanks


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

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


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

Weather API

2017-02-22 Thread Rúben Rodrigues
Hi,

Someone could tell me which API i can use to display weather information 
in my application? It is possible to detect location based on internet 
connection?

Thanks


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

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