Changing gtkrc prelight color of a GtkLabel inside of a GtkEventBox

2010-10-24 Thread Craig Harding
I'm trying to find why I can't change the prelight foreground color of a GtkLabel which is inside a GtkEventBox. I'd first like to point out that the fg[NORMAL] and font_name fields work correctly for this gtklabel. It is only the hover over event where I'm having trouble setting the color (or PRE

leaving focus.

2005-12-12 Thread Craig Harding
I've looked up but can't find how I leave focus on an applet or GtkWidget. When I click a button on a widget, there's a rectangle that surrunds the whole applet. Is there a C call that leaves the focus of the window or widget? Craig. ___ gtk-app-devel

Re: swap images on click event.

2005-12-10 Thread Craig Harding
Got it working. I made an event box for each button and hid and showed each one when needed. Thanks for your help earlier. craig. Craig Harding wrote: Sorry for the delay on this, but I'm still in exams. :) When I add both GtkImages to the applet, and run the program I get the foll

Re: swap images on click event.

2005-12-10 Thread Craig Harding
only contain one widget at a time; it already contains a widget of type GtkImage - When the gtk_widget_hide and gtk_widget_show functions are called, the button is hidden, but when the other button is supposed to show, it doesn't. Craig. Yury Aliaev wrote: Craig Harding scripsit: Ok,

Re: swap images on click event.

2005-12-04 Thread Craig Harding
atic gboolean on_play_button_press (GtkWidget *event_box,GdkEventButton *event,gpointer data) { // do show/hide stuff here? how do I do it? } -- thanks for any help, craig. Yury Aliaev wrote: Craig Harding scripsit: Hi, I'm trying to change an image with another when I cl

Re: swap images on click event.

2005-11-28 Thread Craig Harding
click on the now changed play button (cause I want the pause button to show) but this does not work. This is the problem I'm facing. Thanks for you help previously too.. Craig. Tristan Van Berkom wrote: Craig Harding wrote: Hi, I'm trying to change an image with another when I click o

swap images on click event.

2005-11-27 Thread Craig Harding
Hi, I'm trying to change an image with another when I click on my applet button, but it doesn't work, can anyone help me out? CODE: play_button = gtk_image_new_from_file ("/usr/local/pixmaps/play.png"); pause_button = gtk_image_new_from_file("/usr/local/pixmaps/pause.png"); gtk_widget_ref