Re: Changing the foreground colour of combo boxes
- From: Daniel Kasak <dkasak nusconsulting com au>
- To: Alwin Leerling <leerling xtra co nz>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Changing the foreground colour of combo boxes
- Date: Fri, 18 Jan 2008 15:24:24 +1100
On Fri, 2008-01-18 at 13:55 +1300, Alwin Leerling wrote:
> Hi,
>
> My program runs on a device on which it is very hard to see the current
> selected widget. I therefore wrote to functions
> "on_button_focus_in_event" and "on_button_focus_out_event" that set or
> reset the background color ( gtk_widget_modify_bg( widget,
> GTK_STATE_NORMAL, &color_active ) and gtk_widget_modify_bg( widget,
> GTK_STATE_NORMAL, NULL ) respectively ) and attached these callbacks to
> my buttons.
>
> I tried the same trick with the combo boxes but the background does not
> change.
Have you tried getting hold of the combo's child ( if it's a
ComboBoxEntry ) and modifying it?
Also you could try a different gtk theme.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]