ocarina: Change the ban button to my old thumbs up / thumbs down image
These images still work, and banning songs is the reason that I found them in the first place! Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
31339bed2f
commit
fc7a27c99f
|
@ -17,6 +17,8 @@ def script(target, source, env):
|
|||
extra_files = [
|
||||
("ocarina.xml", "../lib/ocarina/ocarina.xml", copy),
|
||||
("images/ocarina.png", "../lib/ocarina/ocarina.png", copy),
|
||||
("images/thumbs_up.png", "../lib/ocarina/thumbs_up.png", copy),
|
||||
("images/thumbs_down.png", "../lib/ocarina/thumbs_down.png", copy),
|
||||
("scripts/ocarina", "../bin/ocarina", script),
|
||||
("../bin/ocarina", "../ocarina.bin", symlink),
|
||||
]
|
||||
|
|
|
@ -107,11 +107,9 @@ string run_chooser(const string &name)
|
|||
|
||||
static void init_widgets()
|
||||
{
|
||||
GtkIconSize size = GTK_ICON_SIZE_BUTTON;
|
||||
|
||||
ban_button = gtk_toggle_button_new();
|
||||
yes_image = gtk_image_new_from_stock(GTK_STOCK_YES, size);
|
||||
no_image = gtk_image_new_from_stock(GTK_STOCK_NO, size);
|
||||
yes_image = gtk_image_new_from_file(lib_file("thumbs_up.png").c_str());
|
||||
no_image = gtk_image_new_from_file(lib_file("thumbs_down.png").c_str());
|
||||
gtk_button_set_image(GTK_BUTTON(ban_button), yes_image);
|
||||
|
||||
/* Prevent widgets from being destroyed when toggling banned button */
|
||||
|
|
Loading…
Reference in New Issue