Skip to content

Commit 750acad

Browse files
committed
remove keybinder_supported
1 parent addb64a commit 750acad

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/frontend_gtk/app.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ thread_local! {
6262
#[link(name="keybinder-3.0")]
6363
extern {
6464
fn keybinder_init();
65-
fn keybinder_supported() -> glib_sys::gboolean;
6665
fn keybinder_bind(keystring: *const libc::c_char,
6766
handler: extern fn(*const libc::c_char, *mut libc::c_void),
6867
user_data: *mut libc::c_void) -> glib_sys::gboolean;
@@ -564,9 +563,6 @@ impl MinionsApp {
564563

565564
unsafe {
566565
keybinder_init();
567-
if keybinder_supported() == 0 {
568-
panic!("Keybinder not supported");
569-
}
570566
{
571567
let s = ffi::CString::new("<Ctrl>space").unwrap();
572568
keybinder_bind(s.as_ptr(), keybinder_callback_show, std::ptr::null_mut());

0 commit comments

Comments
 (0)