Re: Question about GdkEventButton in gtkmm-4.0

2022-10-07 Thread Kjell Ahlstedt via gtkmm-list
Use Gtk::GestureClick. Some examples: https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/menus/popup/examplewindow.cc https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/popover/examplewindow.cc In most (perhaps all) situations where event

Re: Add Gtk::TextView to Gtk::Grid

2022-10-06 Thread Kjell Ahlstedt via gtkmm-list
set_child(m_grid); shows that this is gtkmm4. I made some tests with the TextView example in gtkmm-documentation, https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/master/examples/book/textview 1. Replaced Gtk::Box m_VBox; by Gtk::Grid m_grid; The TextView is a child of a

Re: Add Gtk::TextView to Gtk::Grid

2022-10-05 Thread Kjell Ahlstedt via gtkmm-list
You have declared the TextView  as a local variable in the constructor. It will be deleted when the constructor finishes. You must either declared it in your window class, like the buttons in https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/grid/examplewindow.h

Re: Builder derived widgets with properties -- error validate_and_install_class_property: assertion 'class->set_property != NULL' failed

2022-08-30 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-08-29 kl. 23:37, skrev Dan Lo Forte: I have a glade file from which I load a derived widget that has a Glib::Property.  When I load the main window, I get the following error: ``` GLib-GObject-CRITICAL **: validate_and_install_class_property: assertion 'class->set_property !=

Re: gtk webview wrong rendering on load and small artifact

2022-08-05 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-08-04 kl. 22:47, skrev Michael Nazzareno Trimarchi: Did you get this strange resize effect? Seems the window is resized and the webview part resizes later, so it's totally not fluent. Anyway the idea behind the project is to create a way to interact with alexa stack using webkit and

Re: gtk webview wrong rendering on load and small artifact

2022-08-04 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: Are you building with gnome-builder? Michael No, I'm building as described in README.md. But I had defined the environment variable GSETTINGS_SCHEMA_DIR. It's needed be other programs that I run now and then. In this case, it was a

Re: gtk webview wrong rendering on load and small artifact

2022-08-04 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-08-03 kl. 12:07, skrev Michael Nazzareno Trimarchi via gtkmm-list: Hi On Wed, Aug 3, 2022 at 11:55 AM Michael Nazzareno Trimarchi wrote: Hi I have created a simple example using gtkmm and webkit here: https://github.com/panicking/gtkmm_alexa I downloaded your example and managed

Re: Unparenting from GtkWidget "destroy"

2022-08-02 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-08-01 kl. 18:01, skrev Baldvin Kovacs: 1. https://developer-old.gnome.org/gtkmm-tutorial/stable/chapter-customwidgets.html.en developer-old.gnome.org is not updated any more. The latest version of the gtkmm tutorial is stored at

Re: Unparenting from GtkWidget "destroy"

2022-08-01 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-07-31 kl. 00:37, skrev Baldvin Kovacs: I took a stab at it, PTAL. Another option is to not do this, but document in both the howtos, and the documentation of Gtk::Widget that container-like custom widgets are not supported. Thx, Baldvin I have updated the custom container example in

Re: Unparenting from GtkWidget "destroy"

2022-07-30 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-07-30 kl. 11:46, skrev Kjell Ahlstedt: Den 2022-07-10 kl. 13:28, skrev Baldvin Kovacs: I'll send a merge request with exposing signal_destroy, and another small one to the documentation, to the custom widget section. Baldvin What has happened with the merge requests? I can easily

Re: Unparenting from GtkWidget "destroy"

2022-07-30 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-07-10 kl. 13:28, skrev Baldvin Kovacs: I'll send a merge request with exposing signal_destroy, and another small one to the documentation, to the custom widget section. Baldvin What has happened with the merge requests? I can easily add _WRAP_SIGNAL(void destroy(), "destroy")

Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-10 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-07-09 kl. 20:02, skrev Mj Mendoza IV via gtkmm-list: I've tried the Cairo-based Clock demo, and adjusted my code to reflect needed changes to port to gtkmm4.  Now, I'm currently missing mouse activities. In addition to what Andrew Potter suggested, if you want to track all mouse

Re: Unparenting from GtkWidget "destroy"

2022-07-10 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-07-09 kl. 18:50, skrev Andrew Potter via gtkmm-list: Beyond exposing the destroy signal, another approach might be adding a virtual dispose method if there is some known problem with sigc++ at this point in the object lifecycle. Adding a virtual method to an existing class breaks ABI.

A possible future of the www.gtkmm.org website

2022-07-06 Thread Kjell Ahlstedt via gtkmm-list
There was a discussion about the www.gtkmm.org website in January. For instance https://mail.gnome.org/archives/gtkmm-list/2022-January/msg7.html There is now a Gnome issue at https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/848 about the gtkmm.org domain. Perhaps it will

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

2022-05-26 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-05-26 kl. 14:07, skrev JLM via gtkmm-list: Thanks for looking at this. I guess from what you say, you do not see the problem. I understand, as I think it would become pretty obvious to anyone for example running GIMP. So even if this isn't a problem specific to my program, it may at

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

2022-05-24 Thread Kjell Ahlstedt via gtkmm-list
I made a few changes in gtk/gdk/gdkevents.c, _gdk_event_queue_handle_motion_compression(). gdk_frame_clock_request_phase (clock, GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS) at the end of the function is always called. Without event compression I get an output such as 276 motion 122.582:89.4453 277

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

2022-05-23 Thread Kjell Ahlstedt via gtkmm-list
I thought I'd run your program and see what happens, but that's difficult without the drawarea.glade file. What is it that you suspect is a bug? That you get an extra motion event with set_event_compression(false)? Or that you don't get it with set_event_compression(true)? It's hardly

Re: Problem in creating a time_keeping application

2022-05-22 Thread Kjell Ahlstedt via gtkmm-list
Glib::Timer is not copyable. If your Time_Keeper class must be copyable, I'd suggest that you let it store a std::shared_ptr instead of a Glib::Timer. Den 2022-05-22 kl. 01:20, skrev jeferson lemos via gtkmm-list: I am having problems with as to Glib::Timer seems to be no copyable on the

Re: How to use Pango::Context?

2022-02-22 Thread Kjell Ahlstedt via gtkmm-list
No, there is no bug report. I have fixed it at gitlab.gnome.org/GNOME/pangomm, branches pangomm-2-46, pangomm-2-48 and master. It looks like this bug has existed for at least 14 years. Hasn't anyone used Pango::Context::get_font_map() before? Den 2022-02-21 kl. 20:28, skrev phosit--- via

Re: How to use Pango::Context?

2022-02-21 Thread Kjell Ahlstedt via gtkmm-list
It's a bug in Pango::Context::get_font_map(). It should get its own reference to the font map, but it doesn't. Until the bug has been fixed in pangomm, you can add a reference yourself. auto fontMap = context->get_font_map(); fontMap->reference();  // Temporary bug fix Note that when you

Re: when we can delete a class derived from Gtk::Window or others

2022-02-19 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-18 kl. 18:55, skrev Klaus via gtkmm-list: I tested you example and it works whenever the user closes the windows in the reverse order from creation. That it seems to work is known. The question is, is it the allowed way to do this? If the Gtk::Window class performs more actions

Re: How to unblock bugfix, pipeline failed with unrelated error in gtk

2022-02-17 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-16 kl. 22:25, skrev Baldvin Kovacs: OK, so I'll wait :). Thanks! 律 Baldvin You don't have to wait. I've merged your merge request. Temporary problems with gtk don't matter. Kjell ___ gtkmm-list mailing list gtkmm-list@gnome.org

Re: How to unblock bugfix, pipeline failed with unrelated error in gtk

2022-02-16 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-16 kl. 15:02, skrev Baldvin Kovacs via gtkmm-list: Hello, I'm trying to send a merge request of a bugfix in gtkmm, but the build pipeline fails with an unrelated error

Re: Support service

2022-02-15 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-14 kl. 20:50, skrev David Gasa i Castell via gtkmm-list: I'd like to know, if possible, why some of my questions (and other users' as well), if so, are not properly answered and how to solve it. Not enough people are working with gtkmm and the other *mm modules (glibmm, etc.).

Re: Drag & Drop example code

2022-02-09 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-09 kl. 13:51, skrev David Gasa i Castell via gtkmm-list: Hi guys, I'd need to understand how to use Drag & Drop facilities in Gtkmm-4.x to reorder GtkListItem(s) in a GtkListView. Could you provide a simple (but complete) example code ? Or maybe to complete the example code in

Re: Gtk::ListView example request

2022-02-03 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-02-03 kl. 11:28, skrev Pedro Vicente: Hi, In the Gtk::ListView (that should replace Gtk::TreeView) the example in the Detailed Description is confusing to understand. So I wanted to request an example. Awaiting response, Pedro Serrano The confusing example in the Detailed Description

Re: Does anyone know how to update the www.gtkmm.org website?

2022-01-26 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-01-24 kl. 17:08, skrev Kjell Ahlstedt: Den 2022-01-24 kl. 08:20, skrev Murray Cumming: I've just updated gtkmm.org. Sorry for the delay. (I ran "make post-html" in docs/, but of course that needs my login.) gtkmm.org's domain is registered at dreamhost.com, and hosted by

Re: Does anyone know how to update the www.gtkmm.org website?

2022-01-24 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-01-24 kl. 08:20, skrev Murray Cumming: On Sun, 2022-01-16 at 19:18 +0100, Kjell Ahlstedt via gtkmm-list wrote: Thewww.gtkmm.org website has not been updated for a long time. There are a number of gtkmm issues about obsolete information. I don't know how to update the website

Does anyone know how to update the www.gtkmm.org website?

2022-01-16 Thread Kjell Ahlstedt via gtkmm-list
The www.gtkmm.org website has not been updated for a long time. There are a number of gtkmm issues about obsolete information.I don't know how to update the website. The source code is stored at https://gitlab.gnome.org/GNOME/gnomemm-website. I've made a few updates to the source code, and

Re: creating a Glib::OptionGroup

2022-01-10 Thread Kjell Ahlstedt via gtkmm-list
Den 2022-01-10 kl. 16:30, skrev phosit--- via gtkmm-list: What is a god method of creating a OptionGroup? The best option I see is to asign every member of Glib::OptionEntry and then add it to the Glib::OptionGroup. Like so: Glib::OptionGroup mainGroup; Glib::OptionEntry ent;

Re: Create C++ bindings of Advanced Gtk+ Sequencer

2021-12-09 Thread Kjell Ahlstedt via gtkmm-list
Appendix G in the gtkmm tutorial is the best description we've got. https://developer-old.gnome.org/gtkmm-tutorial/4.0/ https://developer-old.gnome.org/gtkmm-tutorial/4.0/chapter-wrapping-c-libraries.html.en It's not a very detailed description, I'm afraid. You probably also need to look at

Shall we keep supporting Autotools?

2021-10-15 Thread Kjell Ahlstedt via gtkmm-list
Glib, atk, pango and gtk4 have dropped Autotools support. They can only be built with Meson. Can we drop Autotools support for libsigc++, cairomm, glibmm, atkmm, pangomm, gtkmm, gtkmm-documentation and libxml++? Would anyone object? I'm not sure about libxml++, because the underlying C

Re: SSL certificate error

2021-10-13 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-10-12 kl. 16:05, skrev John Emmas: On 12/10/2021 14:17, Kjell Ahlstedt wrote: . If you just want to pull from gitlab.gnome.org, I suppose you can use https instead of ssl. In .git/config, change url = g...@gitlab.gnome.org:/GNOME/gtkmm to url =

Re: SSL certificate error

2021-10-12 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-10-12 kl. 12:44, skrev John Emmas: I haven't needed to access gnome/git repos for a while but I tried this morning and every repo gives me an error about an expired SSL certificate.  For example, here's what I see when trying to pull from gtkmm:- Fetching origin fatal:

Re: Custom CellRendererText doesn't update cell size

2021-09-10 Thread Kjell Ahlstedt via gtkmm-list
Do you really have to override snapshot_vfunc() and call it explicitly? Isn't gtk's internal version good enough and called when you set property_text()? The CellrendererText will expand as necessary only if it's inserted in a container widget that allows it to expand. On 2021-09-09 13:15,

Re: Deriving from interface implementation

2021-08-04 Thread Kjell Ahlstedt via gtkmm-list
Glib::ObjectBase is a virtual base class. The constructor of a virtual base class is called from the most derived class. When ModelImpl is the most derived class, its constructor calls Glib::ObjectBase(typeid(ModelImpl)). When Derived is the most derived class,

Re: activate signal for Entry

2021-07-19 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-07-18 kl. 21:01, skrev Deep Majumder via gtkmm-list: Hi everyone, The Gtkmm book mentions that Entry can accept a signal handler for the "activate" signal. However, I found no method called "signal_activate" for the Entry class. What is this method actually called? Warm regards, Deep

Re: Gtk::ColumnView examples

2021-07-05 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-07-04 kl. 20:12, skrev Andreas Persson via gtkmm-list: David Gasa i Castell via gtkmm-list wrote: Could you provide some examples (or maybe just one…) of the basic usage of Gtk::ColumnView (in Gtkmm-4.0) ? Hi, I uploaded an example here: https://gitlab.gnome.org/-/snippets/2226 It

Re: Memory leak when drawing with pangomm/cairomm (MSYS2)

2021-06-25 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-06-22 kl. 13:38, skrev 廖骏轩 via gtkmm-list: I have just found out that the Windows version of my project has a massive memory leak, while on Linux it seems alright. It uses pangomm and cairomm to display text, and I believe it’s similar to the examples in the online book, “Programming

Re: gcc 11 compatibility?

2021-05-25 Thread Kjell Ahlstedt via gtkmm-list
On 2021-05-19 09:24, Mike Liao wrote: Thanks! I have manually changed all the bad constructors in those header files, and it works now. Hope the next release of glibmm will include those fixes in the repository :D They are included in glibmm 2.66.1 and 2.68.1. On 5/19/21 1:18 AM, Kjell

Re: gcc 11 compatibility?

2021-05-18 Thread Kjell Ahlstedt via gtkmm-list
Den 2021-05-18 kl. 17:51, skrev Mike Liao via gtkmm-list: I've recently updated my gcc to version 11, and I can't compile my project under thec++20 standard. Here is part of the errors gcc reports: /usr/include/glibmm-2.68/glibmm/variant.h:910:24: error: expected unqualified-id before ‘)’

(In)compatibility of gtkmm with cairomm, pangomm and atkmm

2021-05-06 Thread Kjell Ahlstedt via gtkmm-list
A reply to https://gitlab.gnome.org/GNOME/gtkmm/-/issues/97 and https://discourse.gnome.org/t/in-compatibility-of-gtkmm-with-cairomm-pangomm-and-atkmm/6370?u=raghavgururajanand The gtkmm developers have not (yet) started using discourse.gnome.org. We still use the mailing list at

Re: Problem building mm-common on MSYS2

2021-04-15 Thread Kjell Ahlstedt via gtkmm-list
On 2021-04-15 02:24, Oliver Niebuhr wrote: On 14/04/2021 22:55, Oliver Niebuhr wrote: [cut for readability] I do not know if this is the Solution but I added 'sys.executable' and the Error Message went away: result = subprocess.run([sys.executable, 'aclocal', '--print-ac-dir'],   

Re: GTK4 and gtkmm4 on Arch - Question

2021-04-14 Thread Kjell Ahlstedt via gtkmm-list
You should have sent your questions to the gtkmm-list. That's usually better than sending to a specific person. More people get a chance to see the questions and reply to them. If Arch Linux does not contain a gtkmm4 package, it's more difficult for you to test it. You will have to build some

Re: Problem building mm-common on MSYS2

2021-04-14 Thread Kjell Ahlstedt via gtkmm-list
On 2021-04-14 08:11, Oliver Niebuhr wrote: /util/meson_aux/extra-install-cmd.py C:/Dev/Sources/GTK4/mmcommon/x64/debug/share/aclocal' --- stdout --- --- stderr --- Traceback (most recent call last):   File "C:/Dev/MMCommonSrc/util/meson_aux/extra-install-cmd.py", line 17, in     result =

Ten years with gtkmm, glibmm and other mm modules

2021-02-09 Thread Kjell Ahlstedt via gtkmm-list
About 10 years ago I started a new hobby: Making contributions to gtkmm and other mm modules. Along the way other contributors have decreased their share in the development of these modules. I have found myself adding the majority of new patches. That was never my intention, but I wanted to

Re: Missing Header File ATKMMCONFIG.H

2021-02-04 Thread Kjell Ahlstedt via gtkmm-list
This looks related to atkmm issue https://gitlab.gnome.org/GNOME/atkmm/-/issues/2 With atkmm release 2.28.1 yet another include directory must be added to the list of directories where the compiler searches for include files. Something has not been updated, either in Fedora or in your own

Re: First stable version of gtkmm-4.0 has been released

2020-12-29 Thread Kjell Ahlstedt via gtkmm-list
On 2020-12-29 11:42, Alexander Borro wrote: Thank you for all the great work . I managed to build successfully from tarballs on Fedora 33. I observed one issue however. gtkmm4 compilation failed because valkan/vulkan.h was missing. I then installed vulkan-loader-devel and all completed. I

Re: First stable version of gtkmm-4.0 has been released

2020-12-23 Thread Kjell Ahlstedt via gtkmm-list
The dead link has been removed in the git repo. I've also made other updates in the description of jhbuild. These corrections will show up at https://developer.gnome.org/gtkmm-tutorial/4.0/ after the next release of gtkmm-documentation. Don't know when that will be. On 2020-12-21 21:42,

First stable version of gtkmm-4.0 has been released

2020-12-21 Thread Kjell Ahlstedt via gtkmm-list
After several years of being in an unusually unstable state, gtkmm-4.0 and gtk4 have now stabilized. Application programmers can build them from tarballs or from git clones. I assume that they will be available in Linux distributions in due time. gtkmm-4.0 depends on new releases of several

Re: Failure to add radio buttons to popup menu.

2020-12-16 Thread Kjell Ahlstedt via gtkmm-list
On 2020-12-09 08:55, Kjell Ahlstedt wrote: Gtkmm supports glade, if gtk supports glade. Gtkmm just wraps gtk's C functions in C++ code. The glade file with a GtkDialog that you mention should be no problem for gtkmm. It's similar to the

Re: Debug glibmm-CRITICAL

2020-12-15 Thread Kjell Ahlstedt via gtkmm-list
On 2020-12-15 07:31, Emil Nowak via gtkmm-list wrote: Hello, In my application from time to time I get "glibmm-CRITICAL" errors. They are displayed on console. I wonder how can I debug them. So far I found that in glib there is env variable "G_DEBUG=fatal-criticals" for that in Glib, but seems

Re: Failure to add radio buttons to popup menu.

2020-12-08 Thread Kjell Ahlstedt via gtkmm-list
On 2020-12-08 16:25, 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 that Gnome wants users to

Re: Failure to add radio buttons to popup menu.

2020-12-07 Thread Kjell Ahlstedt via gtkmm-list
I don't know if it works with a file that glade has written. Can't glade write files without GtkMenu, GtkRadioMenuItem, etc? If it can't, it's not compatible with gtk4 and gtkmm4, at least not when it comes to creating menus. Classes like GtkMenuBar, GtkMenu, GtkMenuItem, GtkRadioMenuItem have

Re: Failure to add radio buttons to popup menu.

2020-12-06 Thread Kjell Ahlstedt via gtkmm-list
I combined ideas from the book/menus/main_menu and book/menus/popup examples in gtkmm-documentation. Then it works. See attached files. On 2020-12-04 16:51, Carlo Wood wrote: Hi Kjell, I've been trying for days to get radio buttons working in my popup menu. I can't get closer than "it doesn't

Re: Segfault on Gtk::ListStore::clear ()

2020-12-02 Thread Kjell Ahlstedt via gtkmm-list
I added some code to one of the example programs in gtkmm-tutorial, https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/gtkmm-3-24/examples/book/combobox/complex ExampleWindow::~ExampleWindow() {   Gtk::TreeIter iList = m_refTreeModel->get_iter("0");   while (iList)   {     std::cout <<

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

2020-11-18 Thread Kjell Ahlstedt via gtkmm-list
You're on the right track. I built gtkmm with the -flto compile and link option (and gcc 9.3.0). Then Ahmet's test case does not work. I then removed the redefiniton of G_GNUC_CONST and wrapped the call to Gtk::TextView::get_type() in a call to g_type_ensure() in wrap_init.cc. The test case

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

2020-11-17 Thread Kjell Ahlstedt via gtkmm-list
wrap_init.cc contains the following lines: // Disable the 'const' function attribute of the get_type() functions. // GCC would optimize them out because we don't use the return value. #undef  G_GNUC_CONST #define G_GNUC_CONST /* empty */ This has so far made sure that the compiler does not

Re: Enable / disable a Gio::SimpleAction.

2020-10-08 Thread Kjell Ahlstedt via gtkmm-list
On 2020-10-07 22:04, Carlo Wood wrote: When I put that string in an XML file "example.glade" and try to read it, glade gives the error: example.glade targets Gtk+ 2.12 But this version of Glade is for GTK+ 3 only. Make sure you can run this project with Glade 3.8 with no

Re: Enable / disable a Gio::SimpleAction.

2020-10-07 Thread Kjell Ahlstedt via gtkmm-list
Have you seen the gtkmm tutorial? https://developer.gnome.org/gtkmm-tutorial/3.24/gtkmm-tutorial.html One of the examples in the /Menus and Toolbars/ chapter has a menu with radio items. There is also a menu demo among the gtkmm demo programs.

Re: Enable / disable a Gio::SimpleAction.

2020-10-06 Thread Kjell Ahlstedt via gtkmm-list
On 2020-10-05 17:07, Kjell Ahlstedt wrote: Gio::SimpleActionGroup belongs to glibmm, not to gtkmm. Both gtkmm 2.x and gtkmm 3.x use glibmm versions from the glibmm-2.4 ABI series. I don't understand how you can do what you say you do in gtkmm 2.x. Haven't you used Gtk::ActionGroup and

Re: Enable / disable a Gio::SimpleAction.

2020-10-05 Thread Kjell Ahlstedt via gtkmm-list
Gio::SimpleActionGroup belongs to glibmm, not to gtkmm. Both gtkmm 2.x and gtkmm 3.x use glibmm versions from the glibmm-2.4 ABI series. I don't understand how you can do what you say you do in gtkmm 2.x. Haven't you used Gtk::ActionGroup and Gtk::Action?  Something like     Glib::RefPtr

Re: Help on Gtk::Layout and Gtk::ScrolledWindow

2020-08-23 Thread Kjell Ahlstedt via gtkmm-list
On 2020-08-22 15:53, josephenry via gtkmm-list wrote: Hi, I am learning Gtk+ with gtkmm and my goal is to create a node based interface for visual programming. I started a thread on the Gnome discourse : https://discourse.gnome.org/t/project-guidance-node-based-ui/

Re: FlowBox::get_child_at_pos() seems missing

2020-08-13 Thread Kjell Ahlstedt via gtkmm-list
I have created https://gitlab.gnome.org/GNOME/gtkmm/-/issues/74 On 2020-06-06 13:14, Daniel Boles via gtkmm-list wrote: Please check if it was already requested at the GNOME GitLab for gtkmm, and if not please create a new Issue doing so. ___

Re: Documentation for gstreamermm?

2020-08-12 Thread Kjell Ahlstedt via gtkmm-list
The documentation for gstreamermm 1.10.0 was created with doxygen 1.8.13, for gstreamermm 1.8.0 with doxygen 1.8.12, for gstreamermm 1.4.3 with doxygen 1.8.6. (I checked the tarballs at https://download.gnome.org/sources/gstreamermm/. Doxygen writes its version in every generated html file.)

Re: Clock widget not showing when put in Gtk::Grid.

2020-08-06 Thread Kjell Ahlstedt via gtkmm-list
I printed the width and height values in Clock::on_draw(). With the original code: width=200, height=200 After adding a Grid, like you've done: width=1, height=1 After I also added    c.set_hexpand();    c.set_vexpand(); in main.cc: width=200, height=200 On 2020-08-05 20:55, Carlo Wood wrote:

Re: Merging UI strings into Gtk::Builder?

2020-07-28 Thread Kjell Ahlstedt via gtkmm-list
I made some tests with the menus_and_toolbars example in gtkmm-documentation. Something like this will probably work: Glib::ustring ui_info = "" " " "" ... "" " " ""; Glib::ustring ui_info2 = "" " " "" ... "" " " "";

Re: Please help (core dump)

2020-07-27 Thread Kjell Ahlstedt via gtkmm-list
On 2020-07-27 09:40, Carlo Wood wrote: Is there an example somewhere that shows how I can combine the `void on_menu_mode_*()` member functions of a widget that is not derived (indirectly) from Gio::ActionMap to the menu of the window that this widgets belongs to? Thanks, Carlo Wood Look at

Re: Please help (core dump)

2020-07-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-07-25 17:35, Carlo Wood wrote: Why would this core dump?? LinuxChessboardWidget is defined as: class LinuxChessboardWidget : public cwmm::ChessPositionWidget, public Gio::ActionMap { ... I have to derive from Gio::ActionMap because its constructor is protected. The call to

Re: How to initialize gtkmm without Gtk::Application?

2020-07-24 Thread Kjell Ahlstedt via gtkmm-list
Most of Gtk::Main is deprecated. Gtk::Main::init_gtkmm_internals() is an exception. It's not deprecated in gtkmm3. In gtkmm4 (still very unstable) Gtk::Main has been removed. Gtk::Main::init_gtkmm_internals()is still available, but it's called Gtk::init_gtkmm_internals(). On 2020-07-23

Re: Parsing custom-typed properties from Glade file

2020-07-22 Thread Kjell Ahlstedt via gtkmm-list
Is Type a custom enum? I have never tried to use such an enum in a glade file, but I looked at what gtk does. Their enums are registered with g_enum_register_static(). Each enum value is specified with a GEnumValue, which contains a nickname. The nickname is used in glade files. Example:

Re: Please help

2020-07-22 Thread Kjell Ahlstedt via gtkmm-list
There are lots of working example programs at https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/gtkmm-3-24/examples See e.g. https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/gtkmm-3-24/examples/book/menus/main_menu and

Re: Using Gtk::Builder with a doubly-derived widget

2020-07-04 Thread Kjell Ahlstedt via gtkmm-list
A subject line would be fine. Do you intend to create a GtimerController widget from the gtimer.glade file? Something like    GtimerController *gtimer = nullptr;    refFileBuilder->get_widget_derived("m_main_window", gtimer); I would try GtimerController::GtimerController(BaseObjectType*

Re: Update data in Gtk::ListStore

2020-06-08 Thread Kjell Ahlstedt via gtkmm-list
On 2020-06-07 05:43, Liomar da Hora via gtkmm-list wrote: Hello, How do I update a given ListStore data? According to the example in the book, I can add rows of data, but I haven't found a way to update a specific data. See the treeview/editable_cells example at

Re: Meson and Autotools, or only Meson?

2020-05-17 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 16:03, Kjell Ahlstedt wrote: On 2020-03-26 10:10, Tom Schoonjans via gtkmm-list wrote: Will cairomm also be getting meson as buildsystem? Probably and hopefully, but I don't know when it will happen. Cairomm, atkmm and gtkmm should also get Meson support. Cairomm and atkmm and

Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder

2020-05-05 Thread Kjell Ahlstedt via gtkmm-list
On 2020-05-04 23:45, Josh Bialkowski wrote: > You said in a previous post that you execute... Well... this is executed inside the generated `wrap_init()` which is part of the `Gtk::` namespace (in hindsight, a bad idea) and apparently this function is not getting called. If I call it

Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder

2020-05-04 Thread Kjell Ahlstedt via gtkmm-list
On 2020-05-03 20:12, Josh Bialkowski wrote: Ok, I think I figured it out the m4 include path issue for gmmproc, but I still can't load the widget from GtkBuilder even when using `_CLASS_GTKOBJECT`. I think that with two `-I` in the command line, one must be overriding the other. The following

Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder

2020-05-03 Thread Kjell Ahlstedt via gtkmm-list
I don't understand why panzoomarea.h (and I suppose also panzoomarea.cc) is broken. Don't you get any kind of warning or error message? Probably your gmmproc-command can be made much shorter: /usr/lib/x86_64-linux-gnu/glibmm-2.4/proc/gmmproc -I /usr/lib/x86_64-linux-gnu/gtkmm-3.0/proc/m4

Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder

2020-05-02 Thread Kjell Ahlstedt via gtkmm-list
On 2020-05-01 23:28, Josh Bialkowski via gtkmm-list wrote: ~~~ class PanZoomArea : public Gtk::DrawingArea {   _CLASS_GOBJECT(PanZoomArea, GtkPanZoomArea, GTK_PANZOOM_AREA,                  Gtk::DrawingArea, GtkDrawingArea); ~~~ You must use _CLASS_GTKOBJECT() instead of _CLASS_GOBJECT() for

Re: Trying (and installing) gtk4mm (3.97) ...?

2020-04-21 Thread Kjell Ahlstedt via gtkmm-list
On 2020-04-20 15:54, Martin Brodbeck via gtkmm-list wrote: Hi, (I hope this is the right place to ask...) I'm on Arch Linux and just wanted to get acquainted to (early) gtkmm4. Unfortunately, there are no pre-release packages (like 3.97.1) in AUR yet. I might be able to build them, but some

Re: mmification of gspell

2020-04-16 Thread Kjell Ahlstedt via gtkmm-list
On 2020-04-16 09:19, Daniel Boles via gtkmm-list wrote: On Thu, 16 Apr 2020, 04:18 Pavlo Solntsev via gtkmm-list, mailto:gtkmm-list@gnome.org>> wrote: Check this project https://gitlab.com/mnauw/cppgir Wow, so someone is trying it, great! Thanks. The lack of constness and limitations

Re: mmification of gspell

2020-04-15 Thread Kjell Ahlstedt via gtkmm-list
On 2020-04-15 01:51, Emmanuel Gil Peyrot wrote: Hi, In Inkscape[1] I’ve been trying to replace[2] both GtkSpell and aspell with gspell[3], but I couldn’t find any gspellmm library. I’ve been looking through your mm libraries to see how to generate it, but it seems you write almost all of the

Re: Meson and Autotools, or only Meson?

2020-04-12 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 11:01, Murray Cumming wrote: On Thu, 2020-03-26 at 09:42 +0100, Kjell Ahlstedt wrote: warnings=fatal is the default. I have tried to make the "warnings" option equal to the Autotools equivalent, except that "fatal" is the default. I wonder if that's wise. It will lead to

Re: Why cursor keys are not longer reported in key press events

2020-03-29 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-28 21:52, Klaus wrote: This is normal behavior for event signals. The default handler can stop further processing by returning true. It's described e.g. at https://developer.gnome.org/gtkmm-tutorial/stable/sec-xeventsignals.html.en

Re: Determining widget type

2020-03-28 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-27 16:54, Phil Wolff via gtkmm-list wrote: I want to modify the primary message widget so I can select and copy the text.     Gtk::Box* pBox = pDialog->get_content_area ();     std::vector v = pBox->get_children ();     Glib::ustring str = ((Gtk::Label*)v[0])->get_label (); This

Re: Why cursor keys are not longer reported in key press events

2020-03-28 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-27 17:03, Klaus wrote: Some research later: Seems that build in event handler of Gtk::Window has changed behavior. class MyWin: public Gtk::Window {     bool on_key_press_event( GdkEventKey* event ) override     {     std::cout << "KeyPressEvent" << std::endl;     bool

Re: mm-common and mm-common-get

2020-03-27 Thread Kjell Ahlstedt via gtkmm-list
mm-common-get is new in mm-common 1.0.0, released 2019-10-29. Which version of mm-common have you got? On 2020-03-26 19:35, Pavlo Solntsev via gtkmm-list wrote: Hi, Working on meson, I found that mm-common-get is not available in

Re: Meson and Autotools, or only Meson?

2020-03-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 10:10, Tom Schoonjans via gtkmm-list wrote: Will cairomm also be getting meson as buildsystem? Probably and hopefully, but I don't know when it will happen. Cairomm, atkmm and gtkmm should also get Meson support. ___ gtkmm-list

Re: Meson and Autotools, or only Meson?

2020-03-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 11:01, Murray Cumming wrote: On Thu, 2020-03-26 at 09:42 +0100, Kjell Ahlstedt wrote: Complete documentation of Meson is at https://mesonbuild.com/. The README files of libsigc++, glibmm and pangomm contain very short descriptions of how to build with Meson and with Autotools.

Re: Meson and Autotools, or only Meson?

2020-03-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 09:06, Murray Cumming wrote: On Wed, 2020-03-25 at 18:49 +0100, Kjell Ahlstedt via gtkmm-list wrote: These *mm packages can now be built either with Meson or with Autotools: mm-common libsigc++-2.0, libsigc++-3.0 glibmm-2.4, glibmm-2.66 pangomm-1.4, pangomm-2.44 (gtkmm

Re: Meson and Autotools, or only Meson?

2020-03-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-26 03:06, Pavlo Solntsev wrote: On Wed, 2020-03-25 at 18:49 +0100, Kjell Ahlstedt via gtkmm-list wrote: These *mm packages can now be built either with Meson or with Autotools: mm-common libsigc++-2.0, libsigc++-3.0 glibmm-2.4, glibmm-2.66 pangomm-1.4, pangomm-2.44 (gtkmm

***UNCHECKED*** Meson and Autotools, or only Meson?

2020-03-25 Thread Kjell Ahlstedt via gtkmm-list
These *mm packages can now be built either with Meson or with Autotools: * mm-common * libsigc++-2.0, libsigc++-3.0 * glibmm-2.4, glibmm-2.66 * pangomm-1.4, pangomm-2.44 * (gtkmm-documentation-3,) gtkmm-documentation-4 I've put gtkmm-documentation-3 in parentheses because there is no

Re: goocanvasmm and gtkmm4

2020-03-06 Thread Kjell Ahlstedt via gtkmm-list
Anything that works with gtkmm3 will not work with gtkmm4. I don't know much about goocanvasmm. I just looked at the configure.ac files in GitLab's repo. I can see that a goovanvasmm-3, meant to work with gtkmm4, has been started in the master branch. But it has not been updated for a long

Re: how to get key press event in goocanvasmm

2020-02-16 Thread Kjell Ahlstedt via gtkmm-list
I don't know anything about goocanvasmm, but I know a lot about gtkmm and glibmm. As far as I can see your on_key_press_event() should be called, provided that m_canvas has the keyboard focus. If a child of m_canvas has the keyboard focus, on_key_press_event() should be called if the child

gtk4 and gtkmm-4.0

2020-01-10 Thread Kjell Ahlstedt via gtkmm-list
There are two parallel-installable series of libsigc++, cairomm, glibmm, pangomm, atkmm and gtkmm, one stable, the other extremely unstable. This situation has been going on for a couple of years. It has now and then resulted in Bugzilla bugs and GitLab issues from people who have tried to use

Re: Where to free dynamic allocated widgets, generated within signal handlers

2020-01-04 Thread Kjell Ahlstedt via gtkmm-list
On 2020-01-04 12:14, Klaus wrote: Am 04.01.20 um 11:55 schrieb Kjell Ahlstedt: I think https://gitlab.gnome.org/GNOME/gtkmm-documentation/blob/gtkmm-3-24/examples/book/application/command_line_handling/exampleapplication.cc contains a solution to your problem. See

Re: Where to free dynamic allocated widgets, generated within signal handlers

2020-01-04 Thread Kjell Ahlstedt via gtkmm-list
I think https://gitlab.gnome.org/GNOME/gtkmm-documentation/blob/gtkmm-3-24/examples/book/application/command_line_handling/exampleapplication.cc contains a solution to your problem. See ExampleApplication::create_window() and ExampleApplication::on_window_hide(). Kjell On 2020-01-04 00:43,

Re: custom TreeModel

2019-12-29 Thread Kjell Ahlstedt via gtkmm-list
I have filed https://gitlab.gnome.org/GNOME/gtkmm-documentation/issues/9 On 2019-12-27 14:41, danny wrote: hi, on one hand I genuinely feel that there is a real use case for this: imagine a library that you've written, and you want to show its results in a gtk treeview, but straight from

Re: custom TreeModel

2019-12-23 Thread Kjell Ahlstedt via gtkmm-list
An alternative would be to add this in a new gtkmm-documentation/examples/book/custom/custom_treemodel directory in the gtkmm tutorial. And a description in a new section in the /Custom Widgets/ chapter (which should then be renamed). Isn't this kind of custom class that implements one or

Re: custom TreeModel

2019-12-14 Thread Kjell Ahlstedt via gtkmm-list
Your custom TreeModel can perhaps be added either to the gtkmm demo programs or to the gtkmm tutorial at https://gitlab.gnome.org/GNOME/gtkmm-documentation. Let's decide when you have a working program. Have you noticed that there is a custom TreeModel example at

  1   2   >