I want to make a new application with the GTK3 API. I want to use the old GTK API described in the textbook from my lecturer. The old API is gtk_text_freeze
. I have read the Gtk documentation on the Gnome website, and I find that the API has been deprecated, but it does not explain the replacement of the API.
So. Do you know a replacement for that API?
GtkText was deprecated ~18 years ago ... I wonder when the lecture material was last updated?
The typical way to prevent update flicker is to call g_object_freeze_notify()
on your data source (like a GtkTextBuffer), then do the updates you are going to do, then call g_object_thaw_notify ()
. This isn't really a "replacement" for gtk_text_freeze() since what it did was stupid: you don't want to stop redrawing the widget, you just want the new data to appear atomically.