c - GTK: Read-Only Text Entry (Label-Like)? -


i need make gtk.entry read-only without using set_sensitive, gtk_widget_set_sensitive turn off events, i'm looking make entry read-only, continue receive signals.

it has editable under circumstances, gtk.label not option - whereas gtk.entry not have selectable attribute can modified.

the thing think of far creating gtk.entry, waiting user complete input , replacing gtk.label, doesn't sound nice though.

set both editable , can_focus properties false.

the former ensures entry read-only (while still receiving events such selection), , latter avoids problem mentioned in comment appearance of cursor makes entry appear editable when it's in fact not.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -