Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » cursor's color while it is in a entry which has a black background [RSS Feed]

#1 Nov. 15, 2005 12:45:39

Luca C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cursor's color while it is in a entry which has a black background


yeajchao wrote:
> Hello all
> I have a problem as fllow:
> there is a entry ,it's background is black
> the problem is that ,when i clicked in the entry ,
> I can not see the cursor,
> it may be because the cursor is also black
>
> In my opinion ,if I changed the cursor's color
> I may see it
>
> but the probem is that i didn't know how to change the
> cursor's color
> Can anyone help me ?
>

I think you could place in a .rc file the following:

style "PasswordDialog"
{
GtkWidget::cursor-color = "#FFFFFF"
GtkWidget::secondary-cursor-color = "#FFFF00"
}

widget "*.PasswordDialog*" style "PasswordDialog"

and then call set_name("PasswordDialog") to set the name of the GtkEntry
you want the setting take effect on.

Luca
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » cursor's color while it is in a entry which has a black background [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support