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:
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
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
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
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
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
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");
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