| 489 | } |
| 490 | |
| 491 | pub trait ProgramGridExt { |
| 492 | fn size_group(&self) -> gtk::SizeGroup; |
| 493 | fn join_radio_group(&self, group: Option<&impl IsA<gtk::RadioButton>>); |
| 494 | |
| 495 | fn set_program_modified(&self, program_idx: usize, modified: bool); |
| 496 | fn program_modified(&self, program_idx: usize) -> Option<bool>; |
| 497 | |
| 498 | fn set_program_name(&self, program_idx: usize, name: &str); |
| 499 | fn program_name(&self, program_idx: usize) -> Option<glib::GString>; |
| 500 | |
| 501 | fn set_open(&self, is_open: bool); |
| 502 | fn open(&self) -> bool; |
| 503 | |
| 504 | fn num_pages(&self) -> usize; |
| 505 | fn num_buttons(&self) -> usize; |
| 506 | |
| 507 | fn connect_action<F>(&self, callback: F) -> glib::SignalHandlerId |
| 508 | where F: Fn(ProgramGridAction) + Sync + Send + 'static; |
| 509 | } |
| 510 | |
| 511 | impl ProgramGridExt for ProgramGrid { |
| 512 | fn size_group(&self) -> gtk::SizeGroup { |
nothing calls this directly
no outgoing calls
no test coverage detected