PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Custom Toolbar Icons (not from stock!) (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Custom Toolbar Icons (not from stock!)
#314
Kovu (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Custom Toolbar Icons (not from stock!) 2 Months, 2 Weeks ago Karma: 0  
Hey, kksou...

Once again - I have a - probably simple question (well, I simply don't get along well with PHP-GTK's documentation :P).

How can I set my own toolbar icons (say, from a pix buffer)? All your menu- and toolbar-samples seem to use the stock images from GTK...

I'd like to (mis)use a GtkToolBar as a program starter, and therefore I need to be able of setting my own icons. Preferably the toolbar should work with GtkAction, so that I could deactivate and activate the items if needed.
 
 
Last Edit: 2008/06/18 18:11 By Kovu.
  The administrator has disabled public write access.
#315
kksou (Admin)
Admin
Posts: 254
graph
User Online Now Click here to see the profile of this user
Re:Custom Toolbar Icons (not from stock!) 2 Months, 2 Weeks ago Karma: 7  
Hi Kovu,

Here's a sample code that shows you how to use your own image as custom toolbar icons.

Sample Code 509: How to set up toolbar with custom toolbar icons

I'll show you another sample code tomorrow that uses GtkAction.

Regards,
/kksou

p.s. After writing the above sample codes, I realized that I've already written some similar sample codes almost one year ago!

Slightly different approach, but very useful in some situations:

Sample Code 292: How to set up toolbar with custom text and graphics - Part 1 - labels below graphics?

Sample Code 293: How to set up toolbar with custom text and graphics - Part 2 - labels on right of graphics?

Sample Code 294: How to set up toolbar with custom text and graphics - Part 3 - exact positioning of labels?
 
  The administrator has disabled public write access.
#316
Kovu (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Custom Toolbar Icons (not from stock!) 2 Months, 2 Weeks ago Karma: 0  
Thanks, I'll check those.
 
  The administrator has disabled public write access.
#317
kksou (Admin)
Admin
Posts: 254
graph
User Online Now Click here to see the profile of this user
Re:Custom Toolbar Icons (not from stock!) 2 Months, 2 Weeks ago Karma: 7  
Hi Kovu,

Here's the sample code that uses action with custom toolbar icons.

Sample Code 510: How to set up toolbar using GtkAction with custom toolbar icons?

Regards,
/kksou
 
 
Last Edit: 2008/06/20 15:06 By kksou.
  The administrator has disabled public write access.
#318
Kovu (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Custom Toolbar Icons (not from stock!) 2 Months, 2 Weeks ago Karma: 0  
Cool, thanks! :)
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Copyright © 2006-2008. kksou.com. All Rights Reserved