Re: Announcement: this mailing list will be retired by the end of Oct 2022

2022-10-26 Thread Andrea Veri
to add it to this same topic in Discourse. Thanks and please let us know if you have any questions around Discourse or your onboarding process! [1] https://discourse.gnome.org/t/common-questions-re-mailman-to-discourse/11841 On Thu, Oct 20, 2022 at 1:09 PM Andrea Veri wrote: > Hi, > > A

Re: Question about GdkEventButton in gtkmm-4.0

2022-10-07 Thread Aaron Scheinberg via gtkmm-list
Hi Kjell, Thanks for the quick response - that was very helpful and I have my code working now. Best, Aaron On Fri, Oct 7, 2022 at 1:51 AM Kjell Ahlstedt wrote: > Use Gtk::GestureClick. Some examples: > >

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 Bill Greene via gtkmm-list
Many thanks! It seems that the following call was the key to my problem: m_TextView.set_expand(); This call seems very non-intuitive to me; I would have expected the TextView to automatically expand based on the contents of the TextBuffer. Or, to ask the question another way: Why does the

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-06 Thread Rodolfo Ribeiro Gomes via gtkmm-list
If you are gtkmm3, widgets are hidden by default. You should call Gtk::Container::show_all_children() or Gtk::Widget::show_all(). AFAIK, in gtkmm4 this isn't necessary anymore, as widgets are (finally) visible by default. Em qui., 6 de out. de 2022 às 07:33, Bill Greene via gtkmm-list <

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

2022-10-06 Thread Bill Greene via gtkmm-list
Thanks for taking a look at this. Unfortunately, even after I make the TextView a class member, I still don't see the text displayed in the window. A concise description of the problem is this: If I make the TextView a child of the window, the text is displayed. If I make the TextView a child

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: mouse button event and gtkmm-4.0

2022-09-26 Thread Duncan Duncan via gtkmm-list
Thanks! so I just try quickly something like this. Exactly what i need. auto mouse = Gtk::GestureClick::create(); mouse->set_propagation_phase(Gtk::PropagationPhase::CAPTURE); mouse->set_button(GDK_BUTTON_PRIMARY); add_controller(mouse); mouse->signal_pressed().connect(sigc::mem_fun(*this, ::

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:

Re: mouse button event and gtkmm-4.0

2022-09-26 Thread Daniel Boles via gtkmm-list
You want Gtk::Gesture and its subclasses. ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

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

2022-08-30 Thread Dan Lo Forte
Kjell, That worked! Thanks! Dan On 8/30/22 08:06, Kjell Ahlstedt wrote: 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 **:

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: Problem with sorting ColumnView

2022-08-23 Thread Jackson Campolattaro via gtkmm-list
Thanks! Somehow I got the impression that the ColumnView would construct SortListModels on its own, but looking back at the documentation I'm not sure where I heard that. Here is a working solution: #include > #include > > class MyWindow : public Gtk::Window { > private: > >

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

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:

Re: gtk_widget_class_set_template_from_resource

2022-08-18 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi Kjell Do you have any suggestions? I make some progress using the EXTRA_INIT but the creation that is not correct I have tried to bind_child using gtk_widget and then wrap but does not work and I lost even simple property of derived label. Michael On Sat, Aug 13, 2022 at 2:19 PM Michael

Re: gtk webview wrong rendering on load and small artifact

2022-08-06 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi On Fri, Aug 5, 2022 at 9:08 AM Michael Nazzareno Trimarchi wrote: > > Hi > > On Fri, Aug 5, 2022 at 9:01 AM Kjell Ahlstedt wrote: > > > > 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

Re: gtk webview wrong rendering on load and small artifact

2022-08-05 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi On Fri, Aug 5, 2022 at 9:01 AM Kjell Ahlstedt wrote: > > 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

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 Michael Nazzareno Trimarchi via gtkmm-list
Hi On Thu, Aug 4, 2022 at 10:47 PM Michael Nazzareno Trimarchi wrote: > > Hi Kjell > > On Thu, Aug 4, 2022 at 5:40 PM Michael Nazzareno Trimarchi > wrote: > > > > Hi > > > > On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt > > wrote: > > > > > > Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno

Re: gtk webview wrong rendering on load and small artifact

2022-08-04 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi Kjell On Thu, Aug 4, 2022 at 5:40 PM Michael Nazzareno Trimarchi wrote: > > Hi > > On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt wrote: > > > > Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: > > > > Are you building with gnome-builder? > > > > Michael > > > > No, I'm building

Re: gtk webview wrong rendering on load and small artifact

2022-08-04 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt wrote: > > 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

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 Michael Nazzareno Trimarchi via gtkmm-list
Hi mkdir build cd build cmake ../ make -j10 cd build/src/ ./alexa The schema should be in generated data. This problem I have only if I run from gnome-builder. I need to check if I have some installation by mistake before and still able to find it in the general schema Michael On Thu, Aug 4,

Re: gtk webview wrong rendering on load and small artifact

2022-08-04 Thread Michael Nazzareno Trimarchi via gtkmm-list
Hi Kjell On Thu, Aug 4, 2022 at 3:57 PM Kjell Ahlstedt wrote: > > 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

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: gtk webview wrong rendering on load and small artifact

2022-08-03 Thread 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 restart to work on it in my spare time but I found a rendering > problem on the first load of the page.

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 Baldvin Kovacs via gtkmm-list
Kjell Ahlstedt ezt írta (időpont: 2022. aug. 1., H, 11:05): > 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

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 Baldvin Kovacs via gtkmm-list
Baldvin Kovacs ezt írta (időpont: 2022. júl. 30., Szo, 22:59): > Sorry, I'll get on it now. It was part of my learning effort, and once > I've understood everything, I went on with simply inheriting my widget from > Box, so I forgot about this. > Baldvin > > Kjell Ahlstedt ezt írta (időpont:

Re: Unparenting from GtkWidget "destroy"

2022-07-30 Thread Baldvin Kovacs via gtkmm-list
Sorry, I'll get on it now. It was part of my learning effort, and once I've understood everything, I went on with simply inheriting my widget from Box, so I forgot about this. Baldvin Kjell Ahlstedt ezt írta (időpont: 2022. júl. 30., Szo, 12:11): > Den 2022-07-30 kl. 11:46, skrev Kjell

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-26 Thread Mj Mendoza IV via gtkmm-list
Hi Andrew! Thanks for porting the demo code. I saw the GTK version earlier but I'm not familiar on Gtkmm4 API to actually port the GTK version. I'm still halfway in porting my code, but I can draw now so I feel like it's better progress now than without your gtkmm ported version of the GTK

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 Baldvin Kovacs via gtkmm-list
Kjell Ahlstedt ezt írta (időpont: 2022. júl. 10., V, 13:06): > 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

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.

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

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 >

Re: Unparenting from GtkWidget "destroy"

2022-07-08 Thread Baldvin Kovacs via gtkmm-list
Andrew Potter ezt írta (időpont: 2022. júl. 8., P, 19:45): > > 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:

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

Re: Unparenting from GtkWidget "destroy"

2022-07-08 Thread Baldvin Kovacs via gtkmm-list
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 to >> unparent children both from that, and in the destructor. >>

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: A possible future of the www.gtkmm.org website

2022-07-06 Thread Luca Bacci via gtkmm-list
That would be great! Il giorno mer 6 lug 2022 alle ore 13:23 Kjell Ahlstedt via gtkmm-list < gtkmm-list@gnome.org> ha scritto: > 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

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-26 Thread 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 least be a problem specific to my environment. I have

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 JLM via gtkmm-list
I have managed to cobble together a program in C which does the same thing and confirmed that it is not a specific GTKMM problem at least. On Tue, 2022-05-24 at 00:20 +, JLM via gtkmm-list wrote: > Thanks. I took a look at the web page and I'm pretty sure that the > described behavior is not

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

2022-05-23 Thread JLM via gtkmm-list
Thanks. I took a look at the web page and I'm pretty sure that the described behavior is not what I am observing. For example, I move my mouse around within the DrawingArea, and in the console output I see this (truncated, just showing the end): 2109 649877100 motion 90.9368:79.8589 2110

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

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

2022-05-23 Thread JLM via gtkmm-list
Hi, thanks for taking the time.  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 backend/library queue. With the

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 phosit--- via gtkmm-list
Thank you for the answer and the fix. Is ther a bug report i can track? ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

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: How to use Pango::Context?

2022-02-21 Thread phosit--- via gtkmm-list
> does the error occur if you do windows.reserve(2) before the > emplace_back()s? Yes ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: How to use Pango::Context?

2022-02-21 Thread Daniel Boles via gtkmm-list
does the error occur if you do windows.reserve(2) before the emplace_back()s? On Mon, 21 Feb 2022, 14:30 phosit--- via gtkmm-list, wrote: > Hello > I try to list the awailable font-families. > If I open and close multiple windows ther is a critical error: > GLib-GObject-CRITICAL **:

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

2022-02-20 Thread aitor
Hi Klaus, On 19/2/22 13:00, Klaus wrote: 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 after hide()

Re: Using Gio::ListStore with custom content type and Gtk::ListView (Gtkmm 4)

2022-02-20 Thread Jackson Campolattaro via gtkmm-list
Hi again, >From an earlier thread I found the columnview demo ( https://gitlab.gnome.org/GNOME/gtkmm/-/blob/master/demos/gtk-demo/example_listview_columnview.cc), which was exactly what I needed! In case anyone runs into the same problem as I did, my mistake was using `std::make_shared` to

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

2022-02-19 Thread Klaus Rudolph via gtkmm-list
Thanks for investigation! So I simply will do it this way :-) Thanks for your work! Klaus Am 19.02.22 um 12:42 schrieb 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

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: when we can delete a class derived from Gtk::Window or others

2022-02-18 Thread 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 after hide() and access data for the current class,

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

2022-02-17 Thread aitor
Hi Klaus, On 17/2/22 13:00, Klaus Rudolph wrote: I want to create some windows on demand with "new". If the user closes the window, when I can call delete on that class derived from Gtk::Dialog or Gtk::Window? void on_hide() override { std::cout << "Hide event" <<

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 Pavlo Solntsev via gtkmm-list
gtkmm team, A Docker image can be built with a specific version of gtk. After that, this image can be used to execute CI job. It will be a pretty quick build. glib folks use this approach to build against multiple distors. The good thing about this approach is that all needed dependencies

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

2022-02-16 Thread Baldvin Kovacs via gtkmm-list
Kjell Ahlstedt ezt írta (időpont: 2022. febr. 16., Sze, 21:17): > 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

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-16 Thread aitor
Hi, On 16/2/22 13:00, Kjell Ahlstedt wrote: I suspect that it's not trivial. You can try to ask the GTK developers onhttps://discourse.gnome.org/c/platform/core. Gtkmm is just a C++ wrapper around most of GTK. I should ask you to improve the support. This is free and open software. You

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: Support service

2022-02-14 Thread David Gasa i Castell via gtkmm-list
Discussions are, of course, always welcome but bear in mind that a) The message was sent directly to the project team (I mean, to Mr. M. Cumming, Mr. D. Elstner, Mr. K. Ahlsted, and so on...) with the hope that they will carefully study my suggestion. b) The message was not intended to open a

Re: Support service

2022-02-14 Thread Martin Owens
On Mon, 2022-02-14 at 20:18 +, Jonathan Wakely wrote: > > Well I think it's a bit of both, in practice. I doubt every > contributor to gtkmm is paid to do so. > A bit OT; but yes I agree in principle. There's a whole philosophy of foss responsibility which basically boils down to: If you're

Re: Support service

2022-02-14 Thread Jonathan Wakely via gtkmm-list
On Mon, 14 Feb 2022 at 20:17, Martin Owens wrote: > On Mon, 2022-02-14 at 20:08 +, Jonathan Wakely via gtkmm-list > wrote: > > People work on them for free, > > No,  people work on them for lots of money; they distribute them for > free. > Well I think it's a bit of both, in practice. I

Re: Support service

2022-02-14 Thread Martin Owens
On Mon, 2022-02-14 at 20:08 +, Jonathan Wakely via gtkmm-list wrote: > People work on them for free, No,  people work on them for lots of money; they distribute them for free. Free Software is not free from cost. Although I think you already know this, so I'm just griping about the

Re: Support service

2022-02-14 Thread Jonathan Wakely via gtkmm-list
On Mon, 14 Feb 2022, 19:50 David Gasa i Castell via gtkmm-list, < gtkmm-list@gnome.org> wrote: > Dear project team, > > I write you to say that it doesn't work. > This is a useless statement. Nobody can help something so vague, what does "doesn't work" mean? > I've been using Gtkmm libraries

Re: Support service

2022-02-14 Thread Martin Owens
On Mon, 2022-02-14 at 20:50 +0100, David Gasa i Castell via gtkmm-list wrote: > 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. In general, open source projects are not responsible for supporting users

Re: Drag & Drop example code

2022-02-09 Thread David Gasa i Castell via gtkmm-list
Missatge de Kjell Ahlstedt del dia dc., 9 de febr. 2022 a les 16:28: > 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

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: gtkmm-list Digest, Vol 211, Issue 1

2022-02-07 Thread Ian Martin via gtkmm-list
at > gtkmm-list-ow...@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtkmm-list digest..." > > > Today's Topics: > >1. Gtk::ListView example request (Pedro Vicente) > > > ---

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. The

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

2022-01-23 Thread Murray Cumming
On Sun, 2022-01-16 at 19:18 +0100, Kjell Ahlstedt via gtkmm-list wrote: > 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 >

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

2022-01-17 Thread Pavlo Solntsev via gtkmm-list
Hi, just would like to add my two cents here. We can create a Wiki page as we did here: https://gitlab.gnome.org/GNOME/libgda/-/wikis/home So it will be updated with every succesful CI run. If gtkmm.org is too old but gitlab source is "more" up to date, it would make sence to redirect gtkmm.org

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

2022-01-16 Thread Murray Cumming
Sorry, I forgot to answer your email to me about this. I will check how it works and get back to you. I have previously tried using gitlab for this but it sounds like you have had more luck.On 16 Jan 2022 19:18, Kjell Ahlstedt via gtkmm-list wrote: The www.gtkmm.org website has not been

Re: creating a Glib::OptionGroup

2022-01-10 Thread phosit--- via gtkmm-list
Ok thank you. Unfortunately I don't use Gio::Application. pgpIGHlh6bGNp.pgp Description: OpenPGP digital signature ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

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: Gtk::Treestore buildable appending data?

2021-12-25 Thread Roland Schwarz
Rodolfo, Am 24.12.21 um 16:55 schrieb Rodolfo Ribeiro Gomes via gtkmm-list: It's totally possible to use Gtk::Builder for Gtk::TreeStore and Gtk::TreeView. I am slowly starting to figure everything out. As you don't list your warning messages I don't know how to help you. As I discovered

Re: Gtk::Treestore buildable appending data?

2021-12-24 Thread Phil Wolff via gtkmm-list
The problem you have is that nothing appears in the TreeView, and the cause of that problem lies outside the domain of Builder. In the link I gave you,  look for instances of "m_Columns" and you will see what you are missing. On 12/24/21 5:17 AM, Roland Schwarz wrote: Thank you so much for

Re: Gtk::Treestore buildable appending data?

2021-12-24 Thread Rodolfo Ribeiro Gomes via gtkmm-list
Hello, Roland. It's totally possible to use Gtk::Builder for Gtk::TreeStore and Gtk::TreeView. I indeed use them here in a recent PR for Synfig here: https://github.com/synfig/synfig/pull/2472/files . The ui/glade file is at the end. As you don't list your warning messages I don't know how to

Re: Gtk::Treestore buildable appending data?

2021-12-24 Thread Roland Schwarz
Thank you so much for the link. Unfortunately I have, however, already found it by myself and since nothing on that page mentions ui files and Builder I politely repeat my question: Can anyone please point me to some examples covering Gtk::TreeStore and how to use it with Gtk::Builder? On

Re: Gtk::Treestore buildable appending data?

2021-12-24 Thread Phil Wolff via gtkmm-list
https://developer-old.gnome.org/gtkmm-tutorial/stable/sec-treeview-examples.html.en#treestore-example On 12/24/21 3:38 AM, Roland Schwarz wrote: Dear all, is this a place to ask gtkmm usage questions? If so: I am trying to append data to a GtkTreestore which is defined in a buildable

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

Re: Shall we keep supporting Autotools?

2021-10-16 Thread John Emmas
On 15/10/2021 16:11, Kjell Ahlstedt via gtkmm-list wrote: 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?

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: 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 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 = https://gitlab.gnome.org/GNOME/gtkmm.git Thanks Kjell - https is what I'm already

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:

  1   2   3   4   5   6   7   8   9   10   >