Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

c++ - Missing <gtkmm/eventcontrollerkey.h> header file after installing gtkmm

I've been using gtkmm for a while now and haven't had any problems. I recently wanted to start using Gtk::EventControllerKey for some event-handling goodies, but make was telling me that it couldn't find that class. I looked at the docs, and it said it should be included in <gtkmm/eventcontrollerkey.h>, which should have been covered in my <gtkmm/gtkmm.h>, but I tried it anyways.

When that header file wasn't found, I checked the include folder for gtkmm, and I could only find the <gtkmm/eventcontroller.h>. After looking around, the EventControllerKey class is definitely part of gtkmm, so I checked the Github page, and lo and behold, the header was there.

I'm running Ubuntu 20-something and I have libgtkmm version 3.24.2-1build1 installed.

I can't figure out why I don't have this. Any suggestions would be appreciated.

gtkmm Github

GTK EventControllerKey

gtkmm EventControllerKey


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...