I have made a table using GtkTable and in that table I have attached widget in linux.
On each widget a video is displaying. Now I want to make all widgets click-able so I will be able to display clicked video in full screen mode.
What function should be used for making widget click-able.
No idea what child widget you are using. Many widgets emits the signal
button-release-eventwhen the mouse clicks (press then release) on it. You can listen to the signal like this:where
widgetis your child widget to play videos, it will be passed as the first argument oftoggle_play.datais additional data to be passed as the third argument oftoggle_play, which can be simplyNULLif not needed.You may need to add
GDK_BUTTON_RELEASE_MASKto the event mask of child widgets: