zbar icon indicating copy to clipboard operation
zbar copied to clipboard

Problem with gtk_widget_hide/gtk_widget_show

Open chscf opened this issue 5 years ago • 0 comments

Hello,

I'm having problems when I hide and show, respectively, a ZBarGtk widget using gtk_widget_hide and gtk_widget_show. Initially the ZBarGtk widget is initialized and visible and displays the video stream from the webcam correctly. When I now hide the widget and show it again, no video stream is visible (note: the widget containing the ZBarGtk widget gets resized correctly upon show and hide, only the video stream is missing); when I drag another window over the ZBarGtk widget it gets refreshed and the video stream is visible again.

I can reproduce this with the zbarcam-gtk application easily by adding gtk_widget_hide and gtk_widget_show calls to the status_button_toggled callback function.

Has anyone got a clue what can be done here?

Thanks and best regards, Christian

chscf avatar Jun 08 '20 11:06 chscf