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 following:

Re: swap images on click event.

2005-12-10 Thread Craig Harding
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 following: -- (xmms-applet:17352): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkEventBox, but as a GtkBin subclass a GtkEventBox can only co

Re: swap images on click event.

2005-12-05 Thread Yury Aliaev
Craig Harding scripsit: Ok, how can I show/hide the images? This is a breakdown of the code I'm working on: -- play_button = gtk_image_new_from_file ("/usr/local/pixmaps/play.png"); pause_button = gtk_image_new_from_file("/usr/local/pixmaps/pause3.png"); hbox = gtk_hbox_new(FALSE,0

Re: swap images on click event.

2005-12-04 Thread Craig Harding
Ok, how can I show/hide the images? This is a breakdown of the code I'm working on: -- play_button = gtk_image_new_from_file ("/usr/local/pixmaps/play.png"); pause_button = gtk_image_new_from_file("/usr/local/pixmaps/pause3.png"); hbox = gtk_hbox_new(FALSE,0); play_event_box = gtk_e

Re: swap images on click event.

2005-12-02 Thread Yury Aliaev
Craig Harding scripsit: 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? You may implement this by the easier way (IMHO): add the vbox or the hbox to your container, pack _both_ images in this box and show only the r

Re: swap images on click event.

2005-11-28 Thread Craig Harding
Actually putting in your 5 lines, replacing mine with the image swap, crashes the applet and gives me the following output on debugging: (xmms-applet:8282): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `' (xmms-applet:8282): GLib-GObject-CRITICAL **: file gsignal.c: lin

Re: swap images on click event.

2005-11-28 Thread Tristan Van Berkom
Craig Harding wrote: 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");

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