Re: mouse button event and gtkmm-4.0

2022-09-26 Thread Andrew Potter via gtkmm-list
On Mon, Sep 26, 2022 at 10:17 AM Duncan Duncan via gtkmm-list < gtkmm-list@gnome.org> wrote: > Could someone explain how to get event key mouse ? > > Hi, A question on the list a couple months ago prompted me to make this github gist: https://gist.github.com/talisein/f4f80167fa21f329f3db06a27307

Re: Problem with sorting ColumnView

2022-08-23 Thread Andrew Potter via gtkmm-list
The documentation at https://docs.gtk.org/gtk4/method.ColumnView.get_sorter.html suggests you need a SortListModel On Tue, Aug 23, 2022 at 4:32 AM Jackson Campolattaro via gtkmm-list < gtkmm-list@gnome.org> wrote: > Hello, > > I'm trying to use the Gtk ColumnView to show a custom ListModel in sor

Re: initialize `background-image` with a resource file

2022-08-23 Thread Andrew Potter via gtkmm-list
On Tue, Aug 23, 2022 at 10:44 AM Master via gtkmm-list wrote: > The problem is that I dont know how to tell the `background-image` inside > the style provider to "get the image from resource" instead of "file" > please help me. > Hello, You can set background image to a resource like: background-

Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-09 Thread Andrew Potter via gtkmm-list
The base gtk documentation will be more informative on how to use the toolkit in general. Specifically, https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkwidget-event-signals covers how to change event handling. The relevant event controllers: GestureClick, GestureStylus, GestureDrag are

Re: Unparenting from GtkWidget "destroy"

2022-07-09 Thread Andrew Potter via gtkmm-list
On Fri, Jul 8, 2022 at 11:10 AM Baldvin Kovacs wrote: > > The one I linked in the original email follows well the pattern I have: > https://github.com/baldvin-kovacs/gtkmm-destroy-demo/blob/main/gtkmm-destroy-demo.cc > . Now I added the #if to make it compile and run without the exposed > destroy

Re: Unparenting from GtkWidget "destroy"

2022-07-08 Thread Andrew Potter via gtkmm-list
On Fri, Jul 8, 2022 at 9:26 AM Baldvin Kovacs wrote: > Andrew Potter ezt írta (időpont: 2022. júl. 8., P, > 17:30): > >> >> >> On Fri, Jul 8, 2022, 4:01 AM Baldvin Kovacs via gtkmm-list < >> gtkmm-list@gnome.org> wrote: >> >>> >>> 2. Expose the destroy signal handler, and document that one needs

Re: Unparenting from GtkWidget "destroy"

2022-07-08 Thread Andrew Potter via gtkmm-list
On Fri, Jul 8, 2022, 4:01 AM Baldvin Kovacs via gtkmm-list < gtkmm-list@gnome.org> wrote: > > 2. Expose the destroy signal handler, and document that one needs to > unparent children both from that, and in the destructor. > Is this a new warning? My initial thought is this should be a feature of

Re: With set_event_compression, most recent motion event is held in waiting

2022-05-23 Thread Andrew Potter via gtkmm-list
On Mon, May 23, 2022 at 9:15 AM JLM via gtkmm-list wrote: > I have updated my test. Now you don't have to press a mouse button, but > you can press a keyboard key instead. The problem isn't that I am > seeing extra events, the problem is that the extra event seems to be > hiding, or stuck in a ba

Re: SSL certificate error

2021-10-13 Thread Andrew Potter via gtkmm-list
On Wed, Oct 13, 2021 at 12:12 AM Kjell Ahlstedt via gtkmm-list < gtkmm-list@gnome.org> wrote: > I thought you were using ssh. If you use https, the expired ssl > certificate is perhaps on the server side, i.e. a problem at gnome.org. I > tested by downloading a clone of gtkmm with https today. It

Re: Failure to add radio buttons to popup menu.

2020-12-10 Thread Andrew Potter via gtkmm-list
On Tue, Dec 8, 2020 at 7:24 AM Carlo Wood wrote: > On Tue, 8 Dec 2020 08:41:58 +0100 > Kjell Ahlstedt wrote: > > > I don't know if it works with a file that glade has written. > > That sounds like you don't support glade. I am confused, because > I thought that glade was the defacto standard tha

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
I believe this is caused by https://fedoraproject.org/wiki/LTOByDefault I built the srpm and noticed that the get_type() calls were present in wrap_init.o but was missing from the .so I added %define _lto_cflags %{nil} to the gtkmm .spec file and rebuilt--this disables LTO; the get_type() were th

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
On Tue, Nov 17, 2020 at 6:51 AM Kjell Ahlstedt wrote: > wrap_init.cc contains the following lines: > #undef G_GNUC_CONST > #define G_GNUC_CONST /* empty */ > Oh, right. I see this in Fedora's rpm debug source. I also see the calls to Gtk::TextView::get_type in the debug source. However, when I o

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
On Tue, Nov 17, 2020 at 12:01 AM ahmet öztürk wrote: > Is this a Gtkmm issue then? Fedora guys also think that it is an upstream > issue. See:https://bugzilla.redhat.com/show_bug.cgi?id=1898054 > But why does it only occur on Fedora 33? > Likely its due to a new optimization in gcc 10 which few

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-16 Thread Andrew Potter via gtkmm-list
I think the cause is the G_GNUC_CONST annotation on TextView::get_type(). When I step through the code on Fedora 33, in Gtk::wrap_init, all the wrap_registers happen, but the function just returns, skipping the calls to e.g. TextView::get_type() Ahmet can use g_type_ensure(TVDerived::get_type())