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

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Colomban Wendling
Le 23/02/2017 à 15:57, John Lane a écrit : > […] > > The UIManager provides the menu bar, a few items in the bar each leading > to menus containing a few items. The user can click operate the menu > with a mouse and selecting a menu item triggers a callback that prints > the name of the selected

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Eric Cashon via gtk-app-devel-list
Hi John, Give this a try. It might be close to what you are after. Eric #!/usr/bin/python import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk class MainWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Menu Popup")

Split TextView

2017-02-23 Thread Tuur Dutoit
Hello, I'm trying to make a simple word processor with GTK+, but I got stuck on a seemingly simple issue: I would like to break down the content in multiple pages, like Microsoft word and LibreOffice do, but I can't figure out how to do that. I have a few ideas, but they all sound very

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-23 Thread Eric Cashon via gtk-app-devel-list
Hi David, I tried out gtkedit and it compiled and worked fine. Did a few searches and it found the words. When I compiled I got a few warnings like the following. gtk_common_dlg.c: In function ‘err_dialog’: gtk_common_dlg.c:8:9: warning: format not a string literal and no format

Re: Programatically activate menu like a mouse click

2017-02-23 Thread John Lane
On 23/02/17 15:23, Norbert de Jonge wrote: > I would guess with: > https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget Thanks, I have 3.22.5. I had tried `gtk-menu-popup-at-widget` but it didn't work. I've tried lots of combinations to try and get it to work without

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Norbert de Jonge
> How can I trigger the menu activation (like a mouse click does) ? I would guess with: https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget It's available for GTK+ 3.22 and up, so I cannot test it to verify. This should tell you your GTK+ version: $ pkg-config

Programatically activate menu like a mouse click

2017-02-23 Thread John Lane
I am trying to write a small test app using Python and Gtk+3 It's basically a bar across the top of the display that contains a menu implemented as a Gtk.Window containing a Gtk.Bar containing a menu bar populated using UIManager. Essentially this (where 'self' is an object derived from

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

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

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