void do_switch_station(int nr) { gchar *text_utf8 = NULL, *text_locale = NULL; nr %= nstations; currentstation = nr; start_mute_timer(); radio_setfreq(stations[nr].freq); gkrellm_locale_dup_string(&text_utf8, stations[nr].station_name, &text_locale); gkrellm_draw_decal_text(panel, station_text, text_locale, -1); gkrellm_draw_panel_layers(panel); gkrellm_config_modified(); }
static gint cb_proc_extra(GtkWidget *widget, GdkEventButton *ev) { if (ev->button == 1 && ev->type == GDK_BUTTON_PRESS) { proc.extra_info = !proc.extra_info; gkrellm_config_modified(); refresh_proc_chart(proc.chart); } else if ( ev->button == 3 || (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS) ) gkrellm_chartconfig_window_create(proc.chart); return FALSE; }
void gkrellm_radio_finetune_delta (float amount) { radio_freq_delta(amount); set_text_freq(radio_getfreq()); gkrellm_config_modified(); }