LinuxQuestions.org
Visit Jeremy's Blog.
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 10-26-2007, 05:22 AM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
gtk question


hi all
i am doing gtk application (gui)
for this am using gtkrc file..

in my gtk application, there are 4 buttons
so i included pixmap in gtkrc file...

but all the four button getting the pixmap..
i would like to use deferent pixmaps to each button..

is it poosible

please help me

thank you in advance
 
Old 10-27-2007, 01:56 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I have no idea what you are trying to do.
 
Old 10-28-2007, 06:16 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
If you want to use different pixmpas for each button, you'll need to write that into your code.
The gtkrc file controls thing on a 'per widget' basis, so if you specify something there for a particular widget or class, then the same option will be supplied to all widgets of that type.
 
Old 10-28-2007, 11:25 PM   #4
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by gnashley View Post
If you want to use different pixmpas for each button, you'll need to write that into your code.
yes.. iknow this..
i think there is a problem in writing the code..
let me explain.
if we give add container to the widget.
pixmap will show. but when we move mouse over that and if we click on the button and when button is sensitive. the pixmap will not show like like gtkrc file..
 
  


Reply



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 tutorial question Abomb Programming 4 05-10-2006 04:53 PM
Question about gtk hardstyleFX Linux - Newbie 1 09-30-2005 04:51 PM
Question about C - GTK alitrix Programming 4 11-12-2004 04:47 AM
GTK+ and c question mofofish Programming 1 04-13-2004 12:51 PM
GTK question starbreaker Linux - Software 1 02-16-2002 12:55 PM

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

All times are GMT -5. The time now is 05:17 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