thanks for answering.
Let me explain the situation.
I have a peripherical which behaves like a keyboard (all the data is send as if you were pressing keys). So, it is not a real keyboard but you need a "place" to write on (e.g: a GtkEntry widget, a word document, a txt document, a terminal console, etc).
But in this case I need my own GTK application to retrieve that data. So:
- I focus the GtkEntry just the moment the main window appears
- Thus, the cursor is inside the GtkEntry and when I "activate" my peripherical, I succesfully get the data
- The data is shown inside the GtkEntry
That works fine, but I want to retrieve that data transparently to the user. That is, no GtkEntry (or similar) must be visible. The problem is that, when hiding the widget, the error (Gtk-CRITICAL **: gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT <widget, event> failed) appears. That might mean that making the widget invisible is not an option.
Do you need more details?
Thank you very much.