Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2006, 07:04 AM   #1
LQ Newbie
Registered: May 2006
Posts: 2

Rep: Reputation: 0
gtk_widget_modify for 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.


My sourcecode:
GtkRcStyle *rc_style2 = gtk_rc_style_new();
rc_style2->color_flags[0] = GTK_RC_TEXT|GTK_RC_BG|GTK_RC_FG|GTK_RC_BASE;
rc_style2->fg[0].red = 0;
rc_style2->fg[0].green = 0;
rc_style2->fg[0].blue = 0;
rc_style2->text[0].red = 0x8400;
rc_style2->text[0].green = 0x5c00;
rc_style2->text[0].blue = 0x5c00;
rc_style2->base[0].red = 0xfa00 ;
rc_style2->base[0].green = 0xfa00;
rc_style2->base[0].blue = 0xb800;
rc_style2->bg[0].red = 0xff00;
rc_style2->bg[0].green = 0;
rc_style2->bg[0].blue = 0;
gtk_widget_modify_style (entry, rc_style2);


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk+ to connect GtkEntry prabhakar_kushwaha Programming 3 10-20-2005 01:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration