openSUSE Forums > Archives > Novell Archives » Color in GtkEntry

Go Back   openSUSE Forums > Archives > Novell Archives
Forums FAQ Members List Search Today's Posts Mark Forums Read


Novell Archives Archived content from Novell openSUSE support forums

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-May-2006, 03:38
Brigitte Vallario
Guest
 
Posts: n/a
Default Color in GtkEntry

First: excused my english!!!!

I have SuSE 9.3 installed and started under KDE
I want to modify the color in a Widget-GtkEntry

Under SuSE 8.2 the function
gtk_widget_modify_style(entry, style);
works right, but under the new version it does'nt work.
For example: I have make the entry-background yellow and the border of the
GtkEntry red
With SuSE 9.3 and started with GNOME it works also.

HELP!!!

My sourcecode:
GtkRcStyle *rc_style2 = gtk_rc_style_new();
94 //rc_style2 = gtk_widget_get_modifier_style(entry);
95 rc_style2->color_flags[0] = GTK_RC_TEXT|GTK_RC_BG|GTK_RC_FG
GTK_RC_B ASE;
96 rc_style2->fg[0].red = 0;
97 rc_style2->fg[0].green = 0;
98 rc_style2->fg[0].blue = 0;
99 rc_style2->text[0].red = 0x8400;
100 rc_style2->text[0].green = 0x5c00;
101 rc_style2->text[0].blue = 0x5c00;
102 rc_style2->base[0].red = 0xfa00 ;
103 rc_style2->base[0].green = 0xfa00;
104 rc_style2->base[0].blue = 0xb800;
105 rc_style2->bg[0].red = 0xff00;
106 rc_style2->bg[0].green = 0;
107 rc_style2->bg[0].blue = 0;
108 gtk_widget_modify_style (entry, rc_style2);
109 gtk_rc_style_unref(rc_style2);

  #2 (permalink)  
Old 09-May-2006, 03:34
Automatic reply
Guest
 
Posts: n/a
Default Re: Color in GtkEntry

Brigitte,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team
http://support.novell.com/forums/


 

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2