making GtkEntry *look* uneditable
- From: <shark centibyte org>
- To: <gtk-app-devel-list gnome org>
- Subject: making GtkEntry *look* uneditable
- Date: Tue, 30 Dec 2003 15:35:58 -0800 (PST)
Hello,
After setting a GtkEntry to be not editable with
gtk_editable_set_editable(GTK_EDITABLE(entry), FALSE); the entry widget
still looks editable when the user runs the app (their is no visual
difference between editable and non-editable). I would hope it possible
to make the base color grey (or whichever color is default background
for labels and other non-editable things). Is there any way to change
this, either from inside the application or from a theme?
My current solution is to use
gtk_widget_modify_base(entry, GTK_STATE_NORMAL, &base_color); but if that
is the best solution my question is, how can I set base_color to be the
same as the background color of other widgets (like labels)?
Thanks!
-Peter W
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]