Esempio n. 1
0
void global_accel_group_remove_accelerator( Accelerator accelerator ){
	if ( !global_accel_enabled() ) {
		//globalOutputStream() << "queued for remove: " << accelerator << "\n";
		globalQueuedAccelerators_remove( accelerator );
		return;
	}
	accel_group_remove_accelerator( global_accel, accelerator );
}
Esempio n. 2
0
GClosure* global_accel_group_add_accelerator( Accelerator accelerator, const Callback<void()>& callback ){
	if ( !global_accel_enabled() ) {
		// workaround: cannot add to GtkAccelGroup while it is disabled
		//globalOutputStream() << "queued for add: " << accelerator << "\n";
		globalQueuedAccelerators_add( accelerator, callback );
		return 0;
	}
	return accel_group_add_accelerator( global_accel, accelerator, callback );
}
Esempio n. 3
0
GClosure* global_accel_group_add_accelerator(Accelerator accelerator, const Callback& callback)
{
  if(!global_accel_enabled())
  {
    // workaround: cannot add to GtkAccelGroup while it is disabled
    GlobalQueuedAccelerators_add(accelerator, callback);
    return 0;
  }
  return accel_group_add_accelerator(global_accel, accelerator, callback);
}