Question: CSE 2100 practical computer system with raspberry pi: Question-set 2 -- GUIs} a). You use glade to make a user interface and write c++ code

CSE 2100 practical computer system with raspberry pi:

Question-set 2 -- GUIs} a). You use glade to make a user interface and write c++ code that loads it, displays it, and uses it. It works perfectly on your computer. You give the executable to your buddy who is running the same OS that you do. He complains that your code throws an error when starting up. What likely happened?

b). Should any of your event handling callback functions contain infinite loops or sleep (or sleep-like) statements? Why?

c). You made a GTK+3 based user interface (i.e., in your main code you turn over execution to GTK by calling gtk\_main()). Do some research and describe what the use of the gdk\_threads\_timeout() function could be (hint: timed events). Can you think of (and describe) a specific scenario where that function (and events created by it) could be useful?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!