Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

Kjell Ahlstedt via gtkmm-list <[email protected]> Sun, 10 Jul 2022 13:29:21 +0200
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============9179070366955683584==
Content-Type: multipart/alternative;
 boundary="------------bgoMomzISA0uvQeHQgrgBHSO"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------bgoMomzISA0uvQeHQgrgBHSO
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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 movements, use Gtk::EventControllerMotion.

Just about everything that was done in event signal handlers in gtkmm3 
is now done with the many subclasses of Gtk::EventController.

>
> I've read the gtkmm4 changes section 
> <https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4> 
> of the tutorial 
> (https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4) 
> but content is more of a note than actual information for beginner 
> porters like me.
>
I don't think anyone will ever take the time to write a real migration 
guide from gtkmm3 to gtkmm4.

The documentation at developer-old.gnome.org is not updated any more. If 
you want to see the latest version of the gtkmm4 tutorial, look at 
https://gnome.pages.gitlab.gnome.org/gtkmm-documentation.


--------------bgoMomzISA0uvQeHQgrgBHSO
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Den 2022-07-09 kl. 20:02, skrev Mj
      Mendoza IV via gtkmm-list:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAP0FjUSwL5JZm0oiYe3HPQ9PP3h7wsNi4amNJOC0PT6Fv3AwOA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        <div>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.</div>
      </div>
    </blockquote>
    <p>In addition to what Andrew Potter suggested, if you want to track
      all mouse movements, use Gtk::EventControllerMotion.</p>
    <p>Just about everything that was done in event signal handlers in
      gtkmm3 is now done with the many subclasses of
      Gtk::EventController.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAP0FjUSwL5JZm0oiYe3HPQ9PP3h7wsNi4amNJOC0PT6Fv3AwOA@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I've read the <a
href="https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4"
            moz-do-not-send="true">gtkmm4 changes section</a> of the
          tutorial (<a
href="https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4</a>)
          but content is more of a note than actual information for
          beginner porters like me.</div>
      </div>
      <br>
    </blockquote>
    <p>I don't think anyone will ever take the time to write a real
      migration guide from gtkmm3 to gtkmm4.</p>
    <p>The documentation at <a
href="https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4"
        class="moz-txt-link-freetext">developer-old.gnome.org</a> is not
      updated any more. If you want to see the latest version of the
      gtkmm4 tutorial, look at
      <a class="moz-txt-link-freetext" href="https://gnome.pages.gitlab.gnome.org/gtkmm-documentation">https://gnome.pages.gitlab.gnome.org/gtkmm-documentation</a>.</p>
    <p><br>
    </p>
  </body>
</html>

--------------bgoMomzISA0uvQeHQgrgBHSO--

--===============9179070366955683584==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

--===============9179070366955683584==--