- I’ve a NULL gtklabel. Upon the occurrence of an event, I set a text in this label (with gtk_label_set_text). How can I reset the gtklabel after the event (reset to NULL)?
- How can I set the max length (characters) of a GtkTextView?
- What’s the easiest way to set the distance from the margin of a widget in a GtkTable?
I’ve a NULL gtklabel. Upon the occurrence of an event, I set a text
Share
gtk_label_set_text (label, NULL). If that fails for any reason (e.g. earlier version doesn’t allowNULL), just replace it with"".GtkTextBufferandg_signal_stop_emission_by_name()when you don’t want the insertion to actually happen. Never did this, so it’s just what I’d try, no guarantees it will really work.GtkAlignmentaround your widget and set padding on it — may or may not be what you want.