LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2017, 06:11 PM   #1
Linusovic
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Rep: Reputation: Disabled
GTK+ 3.0 How do i change a button color?


Hi. I've been stuck at this for longer time than I would like to admit.

Can anyone show me the syntax for changing a button color?

EDIT : Using C

Last edited by Linusovic; 12-20-2017 at 07:00 PM.
 
Old 12-20-2017, 06:49 PM   #2
Otacon 141.12
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian, Linux Mint, Ubuntu, Finnix
Posts: 28

Rep: Reputation: Disabled
What language are you using?
 
Old 12-20-2017, 06:59 PM   #3
Linusovic
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
I'm using C
 
Old 12-20-2017, 07:16 PM   #4
Otacon 141.12
LQ Newbie
 
Registered: Oct 2017
Distribution: Debian, Linux Mint, Ubuntu, Finnix
Posts: 28

Rep: Reputation: Disabled
I found this https://stackoverflow.com/questions/...r-of-gtkbutton I haven't tried it, though. Also, from https://developer.gnome.org/gtk3/sta...override-color they recommend using CSS.

Last edited by Otacon 141.12; 12-20-2017 at 07:18 PM.
 
Old 12-20-2017, 07:55 PM   #5
Linusovic
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks I'm gona look into it. will make an update when I get it to work.
 
  


Reply

Tags
button, change, color, gtk+



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
X11 messed up - how to change color depth and available color map Hydrazin Linux - Newbie 6 12-11-2013 08:38 AM
Is there a way to change the shape of button widget in gtk 2.0 venki86 Linux - Newbie 3 03-27-2011 12:26 PM
[SOLVED] Fluxbox - toolbar.button.pressed.color question Mr. Alex Linux - Newbie 1 03-12-2011 12:23 PM
How do I change the color and style of the menu button? guerrascience Mandriva 2 08-01-2008 09:54 PM
CSS question "change color of button" ALInux Programming 2 04-14-2006 10:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

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